summaryrefslogtreecommitdiff
path: root/sql/records.cc
diff options
context:
space:
mode:
authoringo@mysql.com <>2004-12-23 21:45:10 +0100
committeringo@mysql.com <>2004-12-23 21:45:10 +0100
commit60e35755ef1e5ac3318936a324120c0c3f4c788e (patch)
tree2278239c23c9cfa8abc2cfb833b598df01227ee8 /sql/records.cc
parentbf40ab8cb1c129a2da1ae92f1c5ff2fd296ad962 (diff)
downloadmariadb-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.cc8
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)
{