Mysql PROCEDURE SQL parse error
See original GitHub issueDBeaver lasted version 3.6.6 in a store PROCEDURE I use the fllowwing SQL statement :
set @bdate = concat('\'',startdate,'\',\'',enddate,'\'');
the dbeaver will displayed as :
set @bdate = concat(''',startdate,'','',enddate,''');
as above startdate and enddate should be as parameters, while dbeaver’s SQL will lead to a wrong SQL statement , it will treat the startdate and enddate parameters as a string and not a parameter or variable.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
SQL syntax error when creating a stored procedure in MySQL
If I run every single line of the procedure independently, everything works just fine. CREATE PROCEDURE cms_proc_add_child ( param_parent_id INT, param_name ...
Read more >Why am I getting a syntax error when trying to create a stored ...
If you want to create a stored procedure, you have to use the CREATE PROCEDURE syntax, see the documentation. You can't use procedural ......
Read more >Mysql parser error with CASE operator and IF function #2924
The script is valid mysql sql. The parse error can be worked around by surrounding the CASE operator with parentheses, but this is...
Read more >How to resolve the MySQL error “You have an error in your ...
The syntax is as follows. mysql> DELIMITER // mysql> CREATE PROCEDURE sp_getAllRecords() -> BEGIN -> SELECT *FROM employeetable; -> END; -> // ...
Read more >13.1.17 CREATE PROCEDURE and CREATE FUNCTION ...
CREATE DEFINER = 'admin'@'localhost' PROCEDURE account_count() SQL SECURITY INVOKER BEGIN SELECT 'Number of accounts:', COUNT(*) FROM mysql.user; END;. The ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for details.
DBeaver sends SQL as is, but something happens in JDBC driver or somewhere else. Investigating…
that’s great for this and i happy to do the job,also i use DBeaver almost every day,thanks the DBeaver team!
3.6.7 fixed