Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/sql.extensions/README.packages.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Objectives:

The following expressions are valid only if all operands are constants:
1) Arithmetic operations, unary plus/minus
2) Bool As Value
2) Bool As Value, Boolean compare operations
3) CAST, COALESCE, CONCATENATE, DECODE, EXTRACT, UPPER/LOWER, SUBSTRING
4) BIT_LENGTH, CHAR_LENGTH, CHARACTER_LENGTH, OCTET_LENGTH
5) TRIM, LTRIM, RTRIM, BTRIM
Expand Down
6 changes: 6 additions & 0 deletions src/dsql/Nodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,7 @@ class ExprNode : public DmlNode
// SubstringSimilarNode
// TrimNode
// ValueIfNode
// BoolExprNode
//
// Special:
// SysFuncCallNode - see SysFunction::functions
Expand Down Expand Up @@ -818,6 +819,11 @@ class BoolExprNode : public ExprNode
return KIND_BOOLEAN;
}

virtual bool constant() const override
{
return isChildrenConstant();
}

BoolExprNode* dsqlPass(DsqlCompilerScratch* dsqlScratch) override
{
ExprNode::dsqlPass(dsqlScratch);
Expand Down
Loading