DELIMITER
| User, date | Message |
|---|---|
|
Written by kalvaro
3 years ago Category: Running SQL scripts 457 posts since Thu, 29 Nov 07 |
I'm trying out some procedures I found at http://artfulsoftware.com/mysqlbook/sampler/mysqled1ch20.html and I'm having difficulties to run them from within HeidiSQL because the DELIMITER keyword triggers a syntax error. Is it because it's a specific command from the mysql command line tool and not part of MySQL Server's SQL language? Is there a workaround to run scripts that mix different delimiters? |
|
Written by ansgar
3 years ago 4026 posts since Fri, 07 Apr 06 |
What do you actually try to run? I have no problems using the DELIMITER command here: delimiter go Note that there must NOT be a semicolon after DELIMITER <something>. |
|
Written by kalvaro
3 years ago 457 posts since Thu, 29 Nov 07 |
I was trying Listing 7. It's weird, the error comes and go if I remove other lines. In particular, adding a blank line between DELIMITER go and CREATE PROCEDURE makes the error go away: DROP PROCEDURE IF EXISTS famsubtree; I copied the code from the web site using the clipboard. Can it be a mixed line-ending issue? |
|
Written by ansgar
3 years ago 4026 posts since Fri, 07 Apr 06 |
Think that's fixed now. Looked like the detected end offset of the DELIMITER command was just one char too far to the left. Wonder why I didn't see that while I was testing that before. |
|
Written by kalvaro
3 years ago 457 posts since Thu, 29 Nov 07 |
Well, there's a lot of stuff to test I guess. I hadn't noticed it either. Thanks for the quick response. BTW, I've not been able to test it; r3383 starts crashing as soon as I start it :-? date/time : 2010-06-10, 09:18:36, 591ms |
|
Written by ansgar
3 years ago 4026 posts since Fri, 07 Apr 06 |
Oh sorry, that AV should be fixed in r3384 now. Testing should be easy: DELIMITER foo ... plus some variations with spaces after delimiter clause. |
|
Written by kalvaro
3 years ago 457 posts since Thu, 29 Nov 07 |
Now it works like a charm. Thank you! |
|
Please login to leave a reply, or register at first. |