MySql: now ignoring more resultsets (thanks Klugier)

git-svn-id: svn://ultimatepp.org/upp/trunk@7073 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2014-03-23 15:28:35 +00:00
parent 95e1255415
commit 374aedb86c
2 changed files with 8 additions and 0 deletions

View file

@ -313,6 +313,11 @@ bool MySqlConnection::Execute() {
return false;
result = mysql_store_result(mysql);
rows = (int)mysql_affected_rows(mysql);
while(mysql_more_results (mysql)) { // Only first resultset is considered, rest is ignored
mysql_next_result (mysql); // This is required to avoid synchronization error on CALL
}
if(result) {
int fields = mysql_num_fields(result);
info.SetCount(fields);

View file

@ -454,6 +454,9 @@ class SqlMassInsert {
uint64 nulls;
Vector <Value> value;
SqlBool remove;
rval_default(Row);
Row() {}
};
Sql& sql;