summaryrefslogtreecommitdiff
path: root/sql/opt_range.cc
diff options
context:
space:
mode:
authorunknown <sergefp@mysql.com>2005-09-30 14:20:15 +0400
committerunknown <sergefp@mysql.com>2005-09-30 14:20:15 +0400
commitf8a995c1ff3730433e0d3f93e7a69ddb900d3125 (patch)
tree86d4669e88b4bbb8049a4cf5b7194910d9766097 /sql/opt_range.cc
parent09d7123f892a978d284c0cedd48f9a2a16f424a3 (diff)
downloadmariadb-git-f8a995c1ff3730433e0d3f93e7a69ddb900d3125.tar.gz
BUG#13081: Disable ROR-index_merge for NDB tables (by adding a
HA_KEY_SCAN_NOT_ROR index flag) as NDB index scans are not guaranteed to be ROR scans.
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r--sql/opt_range.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc
index caefdf92633..d6b9ec282e0 100644
--- a/sql/opt_range.cc
+++ b/sql/opt_range.cc
@@ -5117,6 +5117,8 @@ check_quick_select(PARAM *param,uint idx,SEL_ARG *tree)
if (cpk_scan)
param->is_ror_scan= TRUE;
}
+ if (param->table->file->index_flags(key, 0, TRUE) & HA_KEY_SCAN_NOT_ROR)
+ param->is_ror_scan= FALSE;
DBUG_PRINT("exit", ("Records: %lu", (ulong) records));
DBUG_RETURN(records);
}