From bd1429c8ba3ee0595a01fa47938bd1c0daae226b Mon Sep 17 00:00:00 2001 From: dimitr Date: Wed, 11 Dec 2013 11:04:08 +0000 Subject: [PATCH] Fixed the issue with recursive CTEs reported by Philippe in firebird-devel. --- src/dsql/DsqlCompilerScratch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dsql/DsqlCompilerScratch.cpp b/src/dsql/DsqlCompilerScratch.cpp index 5d9d0d70cd..cf1a0654b7 100644 --- a/src/dsql/DsqlCompilerScratch.cpp +++ b/src/dsql/DsqlCompilerScratch.cpp @@ -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;