Fix a bug introduced in 25cc9793c2
parent
4b92d96cb4
commit
1baa0b7962
|
@ -57,6 +57,10 @@ func (self *FromClause) GetString() string {
|
|||
if t.Alias != "" {
|
||||
alias = fmt.Sprintf(" as %s", t.Alias)
|
||||
}
|
||||
if t.Name.Type == ValueRegex {
|
||||
names = append(names, fmt.Sprintf(`%s%s`, t.Name.GetString(), alias))
|
||||
continue
|
||||
}
|
||||
names = append(names, fmt.Sprintf(`"%s"%s`, t.Name.GetString(), alias))
|
||||
}
|
||||
buffer.WriteString(strings.Join(names, ","))
|
||||
|
|
Loading…
Reference in New Issue