summaryrefslogtreecommitdiff
path: root/sql/sql_union.cc
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-07-06 16:49:04 -0700
committerunknown <jimw@mysql.com>2005-07-06 16:49:04 -0700
commit8a23dd867273d2dc1c54273ab37308560d47f86a (patch)
treea8b80d8787143eca5e117b5eae0731a99f34dea2 /sql/sql_union.cc
parent348dfd416396cd6d7b541ddaef0d0ea71667fa67 (diff)
parent2e70ec89f96c11001d0be2c5e7dbd527c01defeb (diff)
downloadmariadb-git-8a23dd867273d2dc1c54273ab37308560d47f86a.tar.gz
Merge jwinstead@production.mysql.com:my/mysql-5.0-11045
into mysql.com:/home/jimw/my/mysql-5.0-clean VC++Files/sql/mysqld.dsp: Auto merged sql/ha_federated.cc: Auto merged sql/sql_acl.cc: Auto merged sql/sql_insert.cc: Auto merged sql/sql_lex.cc: Auto merged sql/sql_lex.h: Auto merged sql/sql_union.cc: Auto merged sql/sql_yacc.yy: Auto merged sql/table.cc: Auto merged sql/item_strfunc.cc: SCCS merged
Diffstat (limited to 'sql/sql_union.cc')
-rw-r--r--sql/sql_union.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_union.cc b/sql/sql_union.cc
index c23f14e980b..f2b637dc5f4 100644
--- a/sql/sql_union.cc
+++ b/sql/sql_union.cc
@@ -457,7 +457,9 @@ bool st_select_lex_unit::exec()
table->no_keyread=1;
}
res= sl->join->error;
- offset_limit_cnt= sl->offset_limit ? sl->offset_limit->val_uint() : 0;
+ offset_limit_cnt= (ha_rows)(sl->offset_limit ?
+ sl->offset_limit->val_uint() :
+ 0);
if (!res)
{
examined_rows+= thd->examined_row_count;