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.arenanet.fi
|
||||
jani@ua126d19.elisa.omakaista.fi
|
||||
jani@ua167d18.elisa.omakaista.fi
|
||||
jcole@abel.spaceapes.com
|
||||
jcole@main.burghcom.com
|
||||
jcole@mugatu.spaceapes.com
|
||||
|
@ -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 */
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user