From 91d09f46358d5cfffff9c7a23ec4d6c792e1e534 Mon Sep 17 00:00:00 2001 From: "holyfoot@deer.(none)" <> Date: Tue, 28 Feb 2006 12:21:56 +0400 Subject: [PATCH] Fixed crashes in embedded-server tests --- sql/sql_class.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sql/sql_class.cc b/sql/sql_class.cc index e089c4f3eb0..d391584a3be 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -989,9 +989,7 @@ bool select_send::send_data(List &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);