Quantcast
Channel: Toad for MySQL
Viewing all articles
Browse latest Browse all 1315

Forum Post: RE: Error by debugging stored procedure on MariaDB 10.1

$
0
0
Hi, I have tested again. It looks like that the own statements inserted by TOAD in the DECLARE statement does ignore the ending semicolon and puts the own statements betweeen the END statement and the semicolon. Is there anyone who can reproduce this issue and can provide a solution? Kind regards Michael CREATE PROCEDURE questdebug.f7c083896cd6be6cab48a11b9cd2ca17cb2a0294impl(IN p_id BIGINT, IN p_level INT(4), IN p_source LONGTEXT, IN p_tag_id INT(11), OUT p_return BIGINT) BEGIN DECLARE v_error TINYINT DEFAULT 0; DECLARE v_error_message VARCHAR(100 )C ALL questsoftware.DEBUGSET('p_id','P',p_id);CALL questsoftware.DEBUGSET('p_level','P',p_level);CALL questsoftware.DEBUGSET('p_source','P',p_source);CALL questsoftware.DEBUGSET('p_tag_id','P',p_tag_id);CALL questsoftware.DEBUGSET('p_return','P',p_return);CALL questsoftware.DEBUGSET('v_error','L',v_error);CALL questsoftware.DEBUGSET('v_error_message','L',v_error_message);CALL questsoftware.DEBUGTRACE('PROCEDURE','crawler','p_create_url_footer',10) ;; # initialize return code SET p_return = 0; -- ------------- -- insert record -- ------------- CALL questsoftware.DEBUGSET('p_return','P',p_return);CALL questsoftware.DEBUGSET('p_id','P',p_id);CALL questsoftware.DEBUGSET('p_level','P',p_level);CALL questsoftware.DEBUGSET('p_source','P',p_source);CALL questsoftware.DEBUGSET('p_tag_id','P',p_tag_id);CALL questsoftware.DEBUGSET('v_error','L',v_error);CALL questsoftware.DEBUGSET('v_error_message','L',v_error_message);CALL questsoftware.DEBUGTRACE('PROCEDURE','crawler','p_create_url_footer',20);INSERT INTO crawler.t_url_footer(id, url_level, `source`, tag_id) VALUES (p_id, p_level, p_source, p_tag_id); CALL questsoftware.DEBUGSET('p_id','P',p_id);CALL questsoftware.DEBUGSET('p_level','P',p_level);CALL questsoftware.DEBUGSET('p_source','P',p_source);CALL questsoftware.DEBUGSET('p_tag_id','P',p_tag_id);CALL questsoftware.DEBUGSET('p_return','P',p_return);CALL questsoftware.DEBUGSET('v_error','L',v_error);CALL questsoftware.DEBUGSET('v_error_message','L',v_error_message);CALL questsoftware.DEBUGTRACE('PROCEDURE','crawler','p_create_url_footer',22);END;

Viewing all articles
Browse latest Browse all 1315

Trending Articles



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