We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c74bbb commit cbbbae2Copy full SHA for cbbbae2
driver/mysql_statement.cpp
@@ -33,6 +33,8 @@
33
#include <memory>
34
#include <algorithm>
35
#include <sstream>
36
+#include <cstring>
37
+
38
39
/*
40
* mysql_util.h includes private_iface, ie libmysql headers. and they must go
@@ -133,6 +135,8 @@ MySQL_Statement::get_resultset()
133
135
} catch (::sql::SQLException & e) {
134
136
CPP_ERR_FMT("Error during %s_result : %d:(%s) %s", resultset_type == sql::ResultSet::TYPE_FORWARD_ONLY? "use":"store",
137
proxy_p->errNo(), proxy_p->sqlstate().c_str(), proxy_p->error().c_str());
138
+ if(e.getErrorCode() == 0 && strlen(e.what()) == 0)
139
+ throw ::sql::SQLException("No result available");
140
throw e;
141
}
142
0 commit comments