From 95ee3fbf306d28ba315992ea4af458a4fcfb081b Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 29 Aug 2012 11:35:42 +0300 Subject: MDEV-492: fixed incorrect error check. --- sql/sql_update.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/sql_update.cc') diff --git a/sql/sql_update.cc b/sql/sql_update.cc index 4f816e5f032..7d6eb62f57d 100644 --- a/sql/sql_update.cc +++ b/sql/sql_update.cc @@ -359,7 +359,7 @@ int mysql_update(THD *thd, table->file->info(HA_STATUS_VARIABLE | HA_STATUS_NO_LOCK); select= make_select(table, 0, 0, conds, 0, &error); - if (error || !limit || + if (error || !limit || thd->is_error() || (select && select->check_quick(thd, safe_update, limit))) { delete select; -- cgit v1.2.1