Skip to content

Commit 23e3d7a

Browse files
amended-raw-val
Signed-off-by: General Kroll <generalkroll0@gmail.com>
1 parent 0f1ce3e commit 23e3d7a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

go/vt/sqlparser/ast_funcs.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ func (node *ColName) GetRawVal() string {
610610
name := node.Name.GetRawVal()
611611
q1 := node.Qualifier.GetRawVal()
612612
if q1 != "" {
613-
return fmt.Sprintf("%s.%s", name, q1)
613+
return fmt.Sprintf("%s.%s", q1, name)
614614
}
615615
return name
616616
}
@@ -699,13 +699,13 @@ func (tn TableName) GetRawVal() string {
699699
q2 := tn.QualifierSecond.GetRawVal()
700700
q3 := tn.QualifierThird.GetRawVal()
701701
if q3 != "" {
702-
return fmt.Sprintf("%s.%s.%s.%s", name, q1, q2, q3)
702+
return fmt.Sprintf("%s.%s.%s.%s", q3, q2, q1, name)
703703
}
704704
if q2 != "" {
705-
return fmt.Sprintf("%s.%s.%s", name, q1, q2)
705+
return fmt.Sprintf("%s.%s.%s", q2, q1, name)
706706
}
707707
if q1 != "" {
708-
return fmt.Sprintf("%s.%s", name, q1)
708+
return fmt.Sprintf("%s.%s", q1, name)
709709
}
710710
return name
711711
}

0 commit comments

Comments
 (0)