Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

Error in DELIMITER while Executing procedure.sql #4

Open
gautamksr opened this issue Oct 12, 2018 · 3 comments · May be fixed by #5
Open

Error in DELIMITER while Executing procedure.sql #4

gautamksr opened this issue Oct 12, 2018 · 3 comments · May be fixed by #5

Comments

@gautamksr
Copy link

Hi,

I have tried with all possible syntax for DELIMITER // , DELIMITER $$ and DELIMITER ;
But there is error throw while execute the stored procedure.sql (which has many procedure). could any one help me to shorted out this issues

Details of error:

Error running MySQL scripts: Exception calling "Fill" with "1" argument(s): "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'DELIMITER //
CREATE PROCEDURE test ()
BEGIN
select * from organisation;
' at line 1"

@zivillian
Copy link

I hit the same bug. After some research, I found that DELIMITER ist not an SQL command, but is interpreted by the mysql command line client to split the query text in statements.
The mysql .net library contains a MySqlScript class, which uses a tokenizer to split the query and also respects the DELIMITER.

@zivillian zivillian linked a pull request Nov 21, 2018 that will close this issue
@gautamksr
Copy link
Author

Thanks zivillian. can i have this changes?

@zivillian
Copy link

My changes are available in #5

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants