Fix a bug introduced in 25cc9793c2

pull/948/head
John Shahid 2014-09-17 16:34:08 -04:00
parent 4b92d96cb4
commit 1baa0b7962
1 changed files with 4 additions and 0 deletions

View File

@ -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, ","))