Quantcast
Channel: Toad Extension for Eclipse
Viewing all articles
Browse latest Browse all 978

Forum Post: problem to save edited stored procedure

$
0
0
Hi, I am using Toad Extension for Eclipse ver. 1.9.1 with MySQL ver. 5.5.31 and I have problem to save edited stored procedure. Creating new procedure work fine - procedure is saved properly. It is saved as: DELIMITER $$ USE `dbtest`$$ DROP PROCEDURE IF EXISTS `test`$$ CREATE DEFINER=`dbuser`@`%` PROCEDURE `test`() BEGIN /**/ END$$ DELIMITER ; but when it is opened in editor the code is: ------------------------------------------------------------------ -- PROCEDURE test ------------------------------------------------------------------ CREATE DEFINER=`dbuser`@`%` PROCEDURE `test`() BEGIN /**/ END The changing the procedure and executing "Execute as script" makes error: PROCEDURE test already exists The right code,which I have expected, in editor should be: DELIMITER $$ USE `dbtest`$$ DROP PROCEDURE IF EXISTS `test`$$ CREATE DEFINER=`dbuser`@`%` PROCEDURE `test`() BEGIN /**/ END$$ DELIMITER ; but run "Execute as script" this code makes sql error: 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' at line 1

Viewing all articles
Browse latest Browse all 978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>