Overview
Features
Download
Documentation
Community
Add-Ons & Services

[MySQL] StatementException.code()

Please post support and help requests here.

[MySQL] StatementException.code()

Postby lihui7115 » 21 Feb 2013, 06:26

Hi, Alex
I found that the result of mysql_stmt_errno() isn't saved in StatementException (v1.5.1). So I can't distinguish what the real error is becase the code() equal 0. I wonder if the next version will fix it or keep it?

v1.5.1
--Data/MySQL/src/MySQLException.h
126 StatementException::StatementException(const std::string& text, MYSQL_STMT* h, const std::string& stmt) : MySQLException(compose(text, h, stmt))
127 {
128 }

v1.4.6
--Data/MySQL/src/MySQLException.h
82 StatementException::StatementException(const std::string& text, MYSQL_STMT* h, const std::string& stmt) :
83 MySQLException(compose(text, h, stmt), mysql_stmt_errno(h))
84 {
85 }
lihui7115
 
Posts: 3
Joined: 26 Jul 2012, 11:59

Re: [MySQL] StatementException.code()

Postby alex » 21 Feb 2013, 11:11

I won't be able to get to it. The best chance to get it in is to fix it yourself (write any tests, if applicable) and send us GitHub pull request.
alex
 
Posts: 1142
Joined: 11 Jul 2006, 16:27
Location: United_States


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron