MySQL Forums
Forum List  »  MySQL Workbench

Re: MYSQL Workbench New Syntax Error - 6.3.6
Posted by: Mike Lischke
Date: February 22, 2016 02:05AM

Antoine,

can you give us more details please? Where exactly do you get the syntax error (SP editor, sql editor)?

I tried with the current GA version and get no error for this code (in the sql editor):

delimiter $$
create procedure p1 ()
begin
declare code int;
declare msg text;

GET DIAGNOSTICS CONDITION 1
code = RETURNED_SQLSTATE, msg = MESSAGE_TEXT; 
end;

In the SP editor you can omit the delimiter command.

Mike Lischke, MySQL Developer Tools
Oracle Corporation

MySQL Workbench on Github: https://github.com/mysql/mysql-workbench
On Twitter: https://twitter.com/MySQLWorkbench
On Slack: mysqlcommunity.slack.com (#workbench)
Report bugs to http://bugs.mysql.com
MySQL documentation can be found here: http://dev.mysql.com/doc/refman/8.0/en/

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: MYSQL Workbench New Syntax Error - 6.3.6
1286
February 22, 2016 02:05AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.