mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
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:
parent
95e1255415
commit
374aedb86c
2 changed files with 8 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -454,6 +454,9 @@ class SqlMassInsert {
|
|||
uint64 nulls;
|
||||
Vector <Value> value;
|
||||
SqlBool remove;
|
||||
|
||||
rval_default(Row);
|
||||
Row() {}
|
||||
};
|
||||
|
||||
Sql& sql;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue