Bug #69925 | PreparedStatement | ||
---|---|---|---|
Submitted: | 5 Aug 2013 7:28 | Modified: | 5 Aug 2013 13:12 |
Reporter: | Vikash Kumar Gupta | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | Connector / C++ | Severity: | S3 (Non-critical) |
Version: | OS: | Linux | |
Assigned to: | CPU Architecture: | Any | |
Tags: | C++, connector |
[5 Aug 2013 7:28]
Vikash Kumar Gupta
[5 Aug 2013 12:00]
MySQL Verification Team
Running test case
Attachment: connector_stm.png (image/png, text), 74.96 KiB.
[5 Aug 2013 12:03]
MySQL Verification Team
Thank you for the bug report. I could repeat using mysql-connector-c++-noinstall-1.1.3-winx64. I created the table, compiled your test case, running twice without an error message (see picture attached). Thanks.
[5 Aug 2013 12:13]
Vikash Kumar Gupta
Sir, I'm working on Unix based system(Ubuntu 10.04 LTS) and I'm generating the application by running following commands: 1)- $g++ -Wall -c preparedstmt_test.cpp -lmysqlcppconn 2)- $g++ -Wall .o preparedstmt_test preparedstmt_test.cpp 3)- $./preparedstmt_test after running last command i got the following error : # ERR: SQLException in preparedstmt_test.cpp(main) on line » 36 # ERR: MySQL_Connection::prepareStatement(const sql::SQLString& sql, int autoGeneratedKeys) (MySQL error code: 0, SQLState: )
[5 Aug 2013 13:12]
Vikash Kumar Gupta
I'm sorry Sir, the above command is wrong right command is as : 1)- $g++ -Wall -c preparedstmt_test.cpp -lmysqlcppconn 2)- $g++ -Wall -o preparedstmt_test preparedstmt_test.cpp -lmysqlcppconn 3)- $./preparedstmt_test after running last command I got the following error : # ERR: SQLException in preparedstmt_test.cpp(main) on line » 36 # ERR: MySQL_Connection::prepareStatement(const sql::SQLString& sql, int autoGeneratedKeys) (MySQL error code: 0, SQLState: )