Commit 91d09f46 authored by holyfoot@deer.(none)'s avatar holyfoot@deer.(none)

Fixed crashes in embedded-server tests

parent d49995d1
......@@ -989,9 +989,7 @@ bool select_send::send_data(List<Item> &items)
thd->sent_row_count++;
if (!thd->vio_ok())
DBUG_RETURN(0);
if (thd->net.report_error)
protocol->remove_last_row();
else
if (!thd->net.report_error)
DBUG_RETURN(protocol->write());
protocol->remove_last_row();
DBUG_RETURN(1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment