Bug #2503 | stored procedure creation errors | ||
---|---|---|---|
Submitted: | 24 Jan 2004 15:20 | Modified: | 24 Jan 2004 20:30 |
Reporter: | Ted Toth | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.0.0a-alpha | OS: | Windows (Window XP Professional) |
Assigned to: | CPU Architecture: | Any |
[24 Jan 2004 15:20]
Ted Toth
[24 Jan 2004 20:30]
MySQL Verification Team
According with the Manual's instructions I noticed syntax errors, (pay attention in the SELECT .. INTO statement) Please read the Manual for further instructions at: http://www.mysql.com/doc/en/Stored_Procedures.html I only pasted the part of the stored procedures creation and please compare with the reported ones: mysql> CREATE PROCEDURE rb_GetLastModified -> ( -> pModuleId int, -> pWorkflowVersion int, -> OUT pLastModifiedBy text, -> OUT pLastModifiedDate datetime -> ) -> BEGIN -> IF (pWorkflowVersion = 1) THEN -> SELECT LastEditor, LastModified INTO pLastModifiedBy, -> pLastModifiedDate -> FROM -> rb_Modules -> WHERE -> ModuleID = pModuleId; -> ELSE -> select StagingLastModified, StagingLastEditor INTO pLastModifiedDate, -> pLastModifiedBy -> from rb_Modules -> where ModuleID = pModuleId; -> END IF; -> -> -> END | Query OK, 0 rows affected (0.05 sec) ............................ mysql> CREATE PROCEDURE rb_GetAuthViewRoles -> ( -> pPortalID int, -> pModuleID int, -> OUT pAccessRoles varchar (256), -> OUT pViewRoles varchar (256) -> ) -> BEGIN -> -> -> SELECT -> rb_Tabs.AuthorizedRoles,rb_Modules.AuthorizedViewRoles INTO -> pAccessRoles, pViewRoles -> -> FROM -> rb_Modules -> INNER JOIN -> rb_Tabs ON rb_Modules.TabID = rb_Tabs.TabID -> -> WHERE -> rb_Modules.ModuleID = pModuleID -> AND -> rb_Tabs.PortalID = pPortalID; -> END | Query OK, 0 rows affected (0.02 sec)