Skip to content

Commit 6ea2ec8

Browse files
committed
Fix comment
1 parent a5f5029 commit 6ea2ec8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

expression/expression.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,12 @@ type Expression interface {
7979
// IsCorrelated checks if this expression has correlated key.
8080
IsCorrelated() bool
8181

82-
// ConstItem checks if this expression refers to a table.
82+
// ConstItem checks if this expression is constant item, regardless of query evaluation state.
83+
// An expression is constant item if it:
84+
// refers no tables.
85+
// refers no subqueries that refers any tables.
86+
// refers no non-deterministic functions.
87+
// refers no statement parameters.
8388
ConstItem() bool
8489

8590
// Decorrelate try to decorrelate the expression by schema.

0 commit comments

Comments
 (0)