aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/sqlvm/ast
diff options
context:
space:
mode:
Diffstat (limited to 'core/vm/sqlvm/ast')
-rw-r--r--core/vm/sqlvm/ast/ast.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/vm/sqlvm/ast/ast.go b/core/vm/sqlvm/ast/ast.go
index 0a82ac76c..d5ebb35af 100644
--- a/core/vm/sqlvm/ast/ast.go
+++ b/core/vm/sqlvm/ast/ast.go
@@ -105,10 +105,18 @@ func (n *TaggedExprNodeBase) SetType(t DataType) {
n.Type = t
}
+// IdentifierDescriptor defines the interface of a descriptor. A descriptor
+// identifies an object in a SQL statement. This interface is intended to be
+// used by IdentifierNode to store the target after the name is resolved.
+type IdentifierDescriptor interface {
+ GetDescriptor() uint32
+}
+
// IdentifierNode references table, column, or function.
type IdentifierNode struct {
TaggedExprNodeBase
Name []byte
+ Desc IdentifierDescriptor
}
var _ ExprNode = (*IdentifierNode)(nil)