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

Fixed the issue with recursive CTEs reported by Philippe in firebird-devel.

This commit is contained in:
dimitr 2013-12-11 11:04:08 +00:00
parent 07bc0dfc81
commit bd1429c8ba

View File

@ -718,7 +718,7 @@ SelectExprNode* DsqlCompilerScratch::pass1RecursiveCte(SelectExprNode* input)
// Create the recursive UNION ALL node
UnionSourceNode* const recursiveRse = FB_NEW(pool) UnionSourceNode(pool);
recursiveRse->dsqlClauses = FB_NEW(pool) RecSourceListNode(pool, recursiveStack.pop());
recursiveRse->dsqlClauses = FB_NEW(pool) RecSourceListNode(pool, (unsigned) 0);
recursiveRse->dsqlAll = true;
recursiveRse->recursive = false;