You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-07-30 19:03:17 +03:00
CONC-771: Fix pipelining mode (mariadb_stmt_execute_direct)
If we are in pipeline mode (mariadb_stmt_execute_direct) we don't need to return an error, if there is no or no more data available: If the size of the buffer is a multiple of 8192 packets might be already written and the buffer was resetted afterwards.
This commit is contained in:
@ -494,13 +494,6 @@ int ma_multi_command(MYSQL *mysql, enum enum_multi_status status)
|
||||
return 0;
|
||||
case COM_MULTI_END:
|
||||
{
|
||||
size_t len= net->write_pos - net->buff - NET_HEADER_SIZE;
|
||||
|
||||
if (len < NET_HEADER_SIZE) /* don't send empty request */
|
||||
{
|
||||
ma_net_clear(net);
|
||||
return 1;
|
||||
}
|
||||
net->extension->multi_status= COM_MULTI_OFF;
|
||||
return ma_net_flush(net);
|
||||
}
|
||||
|
Reference in New Issue
Block a user