question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mysql PROCEDURE SQL parse error

See original GitHub issue

DBeaver 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:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
serge-ridercommented, May 6, 2016

Thanks for details.

DBeaver sends SQL as is, but something happens in JDBC driver or somewhere else. Investigating…

0reactions
stepjackycommented, May 10, 2016

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found