diff options
Diffstat (limited to 'sql/sql_union.cc')
-rw-r--r-- | sql/sql_union.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sql/sql_union.cc b/sql/sql_union.cc index 8d0c2e6b1e6..5afef6b390d 100644 --- a/sql/sql_union.cc +++ b/sql/sql_union.cc @@ -211,9 +211,8 @@ bool select_union::send_eof() bool select_union::flush() { - int error,error2; - error=table->file->extra(HA_EXTRA_NO_CACHE); - if (error) + int error; + if ((error=table->file->extra(HA_EXTRA_NO_CACHE))) { table->file->print_error(error,MYF(0)); ::send_error(&thd->net); |