summaryrefslogtreecommitdiff
path: root/sql/sql_union.cc
diff options
context:
space:
mode:
authorunknown <stewart@willster.(none)>2006-10-16 17:39:38 +1000
committerunknown <stewart@willster.(none)>2006-10-16 17:39:38 +1000
commit62689e18e727ecc213770a6e717c576753e9b6c3 (patch)
treed301ac33f253385737189c92d56fb5c94d4e76c9 /sql/sql_union.cc
parent4416725b34e9f075cf0087b71b037db72e6075ea (diff)
parent44a882f92540a51949485a08a0ced93d114fdfa9 (diff)
downloadmariadb-git-62689e18e727ecc213770a6e717c576753e9b6c3.tar.gz
Merge willster.(none):/home/stewart/Documents/MySQL/4.1/bug19914-mk2
into willster.(none):/home/stewart/Documents/MySQL/5.0/bug19914-mk2-merge sql/ha_berkeley.cc: Auto merged sql/ha_berkeley.h: Auto merged BitKeeper/deleted/.del-ha_isam.cc~4dce65904db2675e: Auto merged BitKeeper/deleted/.del-ha_isam.h~bf53d533be3d3927: Auto merged BitKeeper/deleted/.del-ha_isammrg.cc~dc682e4755d77a2e: Auto merged BitKeeper/deleted/.del-ha_isammrg.h~66fd2e5bfe7207dc: Auto merged sql/ha_archive.cc: Auto merged sql/ha_archive.h: Auto merged sql/ha_blackhole.cc: Auto merged sql/ha_blackhole.h: Auto merged sql/ha_heap.cc: Auto merged sql/ha_heap.h: Auto merged sql/ha_innodb.cc: Auto merged sql/ha_innodb.h: Auto merged sql/ha_myisam.cc: Auto merged sql/ha_myisam.h: Auto merged sql/ha_myisammrg.cc: Auto merged sql/ha_myisammrg.h: Auto merged sql/item_sum.cc: Auto merged sql/opt_sum.cc: Auto merged sql/sql_delete.cc: Auto merged sql/examples/ha_example.cc: Auto merged sql/examples/ha_example.h: Auto merged sql/examples/ha_tina.cc: Auto merged sql/examples/ha_tina.h: Auto merged sql/sql_union.cc: Auto merged sql/ha_ndbcluster.cc: merge sql/ha_ndbcluster.h: merge sql/handler.h: merge sql/sql_select.cc: merge
Diffstat (limited to 'sql/sql_union.cc')
-rw-r--r--sql/sql_union.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/sql_union.cc b/sql/sql_union.cc
index c5af81ae55a..3de2ca62c94 100644
--- a/sql/sql_union.cc
+++ b/sql/sql_union.cc
@@ -496,7 +496,12 @@ bool st_select_lex_unit::exec()
DBUG_RETURN(res);
}
/* Needed for the following test and for records_at_start in next loop */
- table->file->info(HA_STATUS_VARIABLE);
+ int error= table->file->info(HA_STATUS_VARIABLE);
+ if(error)
+ {
+ table->file->print_error(error, MYF(0));
+ DBUG_RETURN(1);
+ }
if (found_rows_for_union && !sl->braces &&
select_limit_cnt != HA_POS_ERROR)
{