8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 17:23:04 +01:00

Fixed CORE-1153 - Activating index change "STARTING" working as "LIKE" in join condition

This commit is contained in:
asfernandes 2007-04-01 15:50:54 +00:00
parent ae7cd2c9a8
commit 032de38ae8

View File

@ -2215,7 +2215,7 @@ bool OptimizerRetrieval::matchBoolean(IndexScratch* indexScratch,
if (!OPT_expression_equal(tdbb, optimizer, indexScratch->idx, match, stream) || if (!OPT_expression_equal(tdbb, optimizer, indexScratch->idx, match, stream) ||
(value && !OPT_computable(optimizer->opt_csb, value, stream, true, false))) (value && !OPT_computable(optimizer->opt_csb, value, stream, true, false)))
{ {
if (value && if (boolean->nod_type != nod_starts && value &&
OPT_expression_equal(tdbb, optimizer, indexScratch->idx, value, stream) && OPT_expression_equal(tdbb, optimizer, indexScratch->idx, value, stream) &&
OPT_computable(optimizer->opt_csb, match, stream, true, false)) OPT_computable(optimizer->opt_csb, match, stream, true, false))
{ {