mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 16:43:03 +01:00
Restrict the conversion to equivalence joins only
This commit is contained in:
parent
e63ba45f14
commit
e1a767df26
@ -85,16 +85,19 @@ namespace
|
|||||||
|
|
||||||
if (const auto cmpNode = nodeAs<ComparativeBoolNode>(boolean))
|
if (const auto cmpNode = nodeAs<ComparativeBoolNode>(boolean))
|
||||||
{
|
{
|
||||||
SortedStreamList streams;
|
if (cmpNode->blrOp == blr_eql || cmpNode->blrOp == blr_equiv)
|
||||||
cmpNode->collectStreams(streams);
|
|
||||||
|
|
||||||
for (const auto stream : streams)
|
|
||||||
{
|
{
|
||||||
if (!rseStreams.exist(stream))
|
SortedStreamList streams;
|
||||||
|
cmpNode->collectStreams(streams);
|
||||||
|
|
||||||
|
for (const auto stream : streams)
|
||||||
{
|
{
|
||||||
booleanStack.push(boolean);
|
if (!rseStreams.exist(stream))
|
||||||
*parentBoolean = nullptr;
|
{
|
||||||
return true;
|
booleanStack.push(boolean);
|
||||||
|
*parentBoolean = nullptr;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user