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

Yet another postfix for CORE-5097, it resolves regressions for core_1173.fbt and core_1525.fbt.

This commit is contained in:
dimitr 2016-02-23 08:20:02 +00:00
parent 1229a361cc
commit 04f5f59ff8

View File

@ -71,9 +71,14 @@ bool checkExpressionIndex(const index_desc* idx, ValueExprNode* node, StreamType
while (!idx->idx_expression->sameAs(node, true))
{
DerivedExprNode* const derivedExpr = node->as<DerivedExprNode>();
if (!derivedExpr)
CastNode* const cast = node->as<CastNode>();
if (derivedExpr)
node = derivedExpr->arg;
else if (cast && cast->dummyCast)
node = cast->source;
else
return false;
node = derivedExpr->arg;
}
SortedStreamList exprStreams, nodeStreams;