Skip to content

Commit 0f1ce3e

Browse files
rew-val-expand
Signed-off-by: General Kroll <generalkroll0@gmail.com>
1 parent 2bc2727 commit 0f1ce3e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

go/vt/sqlparser/ast_funcs.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,15 @@ func (node ColIdent) Lowered() string {
606606
return node.lowered
607607
}
608608

609+
func (node *ColName) GetRawVal() string {
610+
name := node.Name.GetRawVal()
611+
q1 := node.Qualifier.GetRawVal()
612+
if q1 != "" {
613+
return fmt.Sprintf("%s.%s", name, q1)
614+
}
615+
return name
616+
}
617+
609618
func (node ColIdent) GetRawVal() string {
610619
return node.val
611620
}

0 commit comments

Comments
 (0)