Skip to content

Commit 70ffad8

Browse files
author
Artyom Abakumov
committed
Fix constant check for ValueListNode
1 parent 25ab034 commit 70ffad8

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/dsql/Nodes.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,6 +1361,17 @@ class ValueListNode : public TypedNode<ListExprNode, ExprNode::TYPE_VALUE_LIST>
13611361

13621362
virtual void getDesc(thread_db* tdbb, CompilerScratch* csb, dsc* desc);
13631363

1364+
virtual bool constant() const override
1365+
{
1366+
for (auto& child : items)
1367+
{
1368+
if (!child->constant())
1369+
return false;
1370+
}
1371+
1372+
return true;
1373+
}
1374+
13641375
ValueListNode* dsqlPass(DsqlCompilerScratch* dsqlScratch) override
13651376
{
13661377
ValueListNode* node = FB_NEW_POOL(dsqlScratch->getPool()) ValueListNode(dsqlScratch->getPool(),

0 commit comments

Comments
 (0)