Commit de7ac129 authored by unknown's avatar unknown
Browse files

Fixed crashes in embedded-server tests


sql/sql_class.cc:
  fixed code caused superfluous protocol->remove_last_row() call
parent 10080bb1
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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);