summaryrefslogtreecommitdiff
path: root/sql/sql_select.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r--sql/sql_select.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index ad55ddbeecf..ba64c004975 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -32592,7 +32592,8 @@ bool Sql_cmd_dml::execute_inner(THD *thd)
if (unlikely(thd->is_error()))
goto err;
- join->exec();
+ if (join->exec())
+ goto err;
if (thd->lex->describe & DESCRIBE_EXTENDED)
{