Skip to content

Commit 16ef06e

Browse files
committed
Fixed crash in engine as shown by failed QA test gh_8221_test
1 parent cd3f39a commit 16ef06e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dsql/ExprNodes.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12372,7 +12372,8 @@ DmlNode* SysFuncCallNode::parse(thread_db* tdbb, MemoryPool& pool, CompilerScrat
1237212372
// Special handling for system function MAKE_DBKEY:
1237312373
// convert constant relation name into ID at the parsing time
1237412374

12375-
auto literal = nodeAs<LiteralNode>(node->args->items[0]);
12375+
auto literal = node->args->items.getCount() ?
12376+
nodeAs<LiteralNode>(node->args->items[0]) : nullptr;
1237612377

1237712378
if (literal && literal->litDesc.isText())
1237812379
{

0 commit comments

Comments
 (0)