Commit de7ac129 authored by unknown's avatar unknown

Fixed crashes in embedded-server tests


sql/sql_class.cc:
  fixed code caused superfluous protocol->remove_last_row() call
parent 10080bb1
......@@ -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