diff options
author | Jon Olav Hauglid <jon.hauglid@oracle.com> | 2010-07-19 11:21:24 +0200 |
---|---|---|
committer | Jon Olav Hauglid <jon.hauglid@oracle.com> | 2010-07-19 11:21:24 +0200 |
commit | 80371ba644f8fefec52acca795ecd7528a9c00a3 (patch) | |
tree | 2c2ad483bc3b231cd58c6b29bb7e1426ea14cd70 /sql/opt_range.h | |
parent | 2c3a5626008f2589d4c2d9eac854a9098871d7f5 (diff) | |
parent | 85e5ce0ba06b6a79e4bd7521ab0e44c1e63a3e77 (diff) | |
download | mariadb-git-80371ba644f8fefec52acca795ecd7528a9c00a3.tar.gz |
manual merge from mysql-5.1-bugteam
Diffstat (limited to 'sql/opt_range.h')
-rw-r--r-- | sql/opt_range.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sql/opt_range.h b/sql/opt_range.h index 0d4000002b0..33b3d561ad8 100644 --- a/sql/opt_range.h +++ b/sql/opt_range.h @@ -825,7 +825,11 @@ class SQL_SELECT :public Sql_alloc { tmp.set_all(); return test_quick_select(thd, tmp, 0, limit, force_quick_range) < 0; } - inline bool skip_record() { return cond ? cond->val_int() == 0 : 0; } + inline bool skip_record(THD *thd, bool *skip_record) + { + *skip_record= cond ? cond->val_int() == FALSE : FALSE; + return thd->is_error(); + } int test_quick_select(THD *thd, key_map keys, table_map prev_tables, ha_rows limit, bool force_quick_range); }; |