summaryrefslogtreecommitdiff
path: root/sql/sql_do.cc
diff options
context:
space:
mode:
authorbell@laptop.sanja.is.com.ua <>2003-10-08 11:19:09 +0300
committerbell@laptop.sanja.is.com.ua <>2003-10-08 11:19:09 +0300
commit381b68086809c0e84b0bd799626c0206faee685d (patch)
tree2be56b9d61879e50e7e3330de2083b06e9ef9ebc /sql/sql_do.cc
parent9b4018066ed3f4786d56c161477a1481520a34e7 (diff)
downloadmariadb-git-381b68086809c0e84b0bd799626c0206faee685d.tar.gz
fixed error handling in SET and DO operators (BUG#1484)
Diffstat (limited to 'sql/sql_do.cc')
-rw-r--r--sql/sql_do.cc1
1 files changed, 1 insertions, 0 deletions
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<Item> &values)
DBUG_RETURN(-1);
while ((value = li++))
value->val_int();
+ thd->clear_error(); // DO always is OK
send_ok(thd);
DBUG_RETURN(0);
}