Quantcast
Channel: MySQL Forums - Connector/C++
Viewing all articles
Browse latest Browse all 527

c++ mysql stored procedure error code 1064, SQLState: 42000 (no replies)

$
0
0
I use FreeBsd 8.0 amd64 and this package mysql-client-5.1.61, mysql-connector-c++-1.1.0, mysql-server-5.1.61 and gcc 4.2.1

I have this procedure
CREATE PROCEDURE add() begin
DECLARE vEvId int DEFAULT 0;
insert into ev(evDen,adr) values('concurs informatic 3','0'); select last_insert_id() into vEvId; END;

and when i try to run this from c++ program i get this error
# ERR: 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 'add' at line 1 (MySQL error code: 1064, SQLState: 42000 )

Viewing all articles
Browse latest Browse all 527

Trending Articles



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