diff options
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r-- | sql/sql_select.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 605ef49bb07..03ce04a81a7 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -537,6 +537,8 @@ JOIN::optimize() { if (res > 1) { + thd->fatal_error(); + error= res; DBUG_RETURN(1); } if (res < 0) |