Added error reporting if one of the multi queries failed.
BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
This commit is contained in:
parent
c70ba7ce27
commit
baae790c96
@ -50,6 +50,7 @@ jani@janikt.pp.saunalahti.fi
|
|||||||
jani@rhols221.adsl.netsonic.fi
|
jani@rhols221.adsl.netsonic.fi
|
||||||
jani@rhols221.arenanet.fi
|
jani@rhols221.arenanet.fi
|
||||||
jani@ua126d19.elisa.omakaista.fi
|
jani@ua126d19.elisa.omakaista.fi
|
||||||
|
jani@ua167d18.elisa.omakaista.fi
|
||||||
jcole@abel.spaceapes.com
|
jcole@abel.spaceapes.com
|
||||||
jcole@main.burghcom.com
|
jcole@main.burghcom.com
|
||||||
jcole@mugatu.spaceapes.com
|
jcole@mugatu.spaceapes.com
|
||||||
|
@ -1622,6 +1622,7 @@ com_go(String *buffer,char *line __attribute__((unused)))
|
|||||||
MYSQL_RES *result;
|
MYSQL_RES *result;
|
||||||
ulong timer, warnings;
|
ulong timer, warnings;
|
||||||
uint error= 0;
|
uint error= 0;
|
||||||
|
int err= 0;
|
||||||
|
|
||||||
if (!status.batch)
|
if (!status.batch)
|
||||||
{
|
{
|
||||||
@ -1739,7 +1740,9 @@ com_go(String *buffer,char *line __attribute__((unused)))
|
|||||||
else if (unbuffered)
|
else if (unbuffered)
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
mysql_free_result(result);
|
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 */
|
return error; /* New command follows */
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user