1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Added error reporting if one of the multi queries failed.

This commit is contained in:
jani@ua167d18.elisa.omakaista.fi
2003-11-20 20:06:51 +02:00
parent da73d77f6f
commit 0b1bae4677
2 changed files with 6 additions and 2 deletions

View File

@@ -1621,7 +1621,8 @@ com_go(String *buffer,char *line __attribute__((unused)))
char buff[200], time_buff[32], *pos;
MYSQL_RES *result;
ulong timer, warnings;
uint error=0;
uint error= 0;
int err= 0;
if (!status.batch)
{
@@ -1739,7 +1740,9 @@ com_go(String *buffer,char *line __attribute__((unused)))
else if (unbuffered)
fflush(stdout);
mysql_free_result(result);
} while (!mysql_next_result(&mysql));
} while (!(err= mysql_next_result(&mysql)));
if (err >= 1)
error= put_error(&mysql);
return error; /* New command follows */
}