From 0f81ecf5014ed0bfdbdf9a89054565ffa6b093c9 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 8 Oct 2003 11:19:09 +0300 Subject: fixed error handling in SET and DO operators (BUG#1484) mysql-test/r/subselect.result: test for BUG#1484 mysql-test/t/subselect.test: layout fix test for BUG#1484 sql/set_var.cc: value evaluating can fail (because of subqueries for example) => we should check result of operartion and prevent assigning incorrect value sql/sql_do.cc: DO should ignore all errors --- sql/sql_do.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'sql/sql_do.cc') diff --git a/sql/sql_do.cc b/sql/sql_do.cc index f25c4632e1e..25a8359f3d2 100644 --- a/sql/sql_do.cc +++ b/sql/sql_do.cc @@ -29,6 +29,7 @@ int mysql_do(THD *thd, List &values) DBUG_RETURN(-1); while ((value = li++)) value->val_int(); + thd->clear_error(); // DO always is OK send_ok(thd); DBUG_RETURN(0); } -- cgit v1.2.1