Bug #5337 | script delimiter stored procedure | ||
---|---|---|---|
Submitted: | 1 Sep 2004 10:06 | Modified: | 22 Apr 2006 0:44 |
Reporter: | Ben Swann | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 5.0.1 standard | OS: | Linux (linux) |
Assigned to: | Ramil Kalimullin | CPU Architecture: | Any |
[1 Sep 2004 10:06]
Ben Swann
[1 Sep 2004 10:07]
Ben Swann
The script source
Attachment: script.sql (text/plain), 418 bytes.
[1 Sep 2004 10:07]
Ben Swann
The output
Attachment: output.txt (text/plain), 1.73 KiB.
[1 Sep 2004 11:15]
MySQL Verification Team
Thank you for bug report! I was able to repeat it with the latest BK 5.0 source tree.
[7 Dec 2004 12:08]
Per-Erik Martin
This is most likely a 4.1 bug really (as the delimiter mechanism was instroduced there).
[27 Jun 2005 23:39]
Jim Winstead
The patch for Bug #11523 likely solves this, too. The problem is in how the delimiter command is handled within a file that is read via the source command.
[5 Nov 2005 13:38]
Marek Woch
in 5.0.15 on Win98SE in client (mysql), delimiter setted in script works in script but after returning to client prompt you have to repeat (as 1 command after finishing script) statement , for example delimiter ; .
[22 Apr 2006 0:44]
Jim Winstead
This is no longer repeatable, and was probably solved by the fix for Bug #11523.
[3 May 2010 11:39]
vinay maurya
hi...can anyone help me... i am trying this simplest code to create stored procedure on mysql command prompt.but it is giving an syntax error...i know this error is because of semicolon(';')...while writing on command prompt, when we use the semicolon and press ENTER key to go to next statement, without going on next statement,it is executed and gives syntax error..can anyone help me ..for this on command prompt.........thanks mysql> CREATE PROCEDURE sp_condition(IN var1 INT) BEGIN IF (var1 > 10) THEN SELECT 'greater'; ELSE SELECT 'less than or equal'; END IF; END|
[5 May 2010 7:04]
vinay maurya
thanks Ben Swann.... i got the solution from your article dated [1 Sep 2004 12:06] Ben Swann thanks a lot.....