diff options
author | ingo@mysql.com <> | 2004-12-23 21:45:10 +0100 |
---|---|---|
committer | ingo@mysql.com <> | 2004-12-23 21:45:10 +0100 |
commit | 60e35755ef1e5ac3318936a324120c0c3f4c788e (patch) | |
tree | 2278239c23c9cfa8abc2cfb833b598df01227ee8 /sql/records.cc | |
parent | bf40ab8cb1c129a2da1ae92f1c5ff2fd296ad962 (diff) | |
download | mariadb-git-60e35755ef1e5ac3318936a324120c0c3f4c788e.tar.gz |
WL#2126 - Multi_read_range.
Added the required structures and functions for
handing over multiple key ranges to the table handler.
Diffstat (limited to 'sql/records.cc')
-rw-r--r-- | sql/records.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/records.cc b/sql/records.cc index 5963c36afd9..3c0143d2307 100644 --- a/sql/records.cc +++ b/sql/records.cc @@ -100,11 +100,19 @@ void init_read_record(READ_RECORD *info,THD *thd, TABLE *table, } else if (select && select->quick) { + int error; DBUG_PRINT("info",("using rr_quick")); if (!table->file->inited) table->file->ha_index_init(select->quick->index); info->read_record=rr_quick; + + if ((error= select->quick->get_next_init())) + { + /* Cannot return error code here. Instead print to error log. */ + table->file->print_error(error,MYF(ME_NOREFRESH)); + thd->fatal_error(); + } } else if (table->sort.record_pointers) { |