From 1baa0b7962efa907a27c2d8c37588c82d3fb1020 Mon Sep 17 00:00:00 2001 From: John Shahid Date: Wed, 17 Sep 2014 16:34:08 -0400 Subject: [PATCH] Fix a bug introduced in 25cc9793c28ca44d84f25bb1a93134ad1ded62c2 --- parser/from_clause.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/parser/from_clause.go b/parser/from_clause.go index 90711653b4..41c88507b0 100644 --- a/parser/from_clause.go +++ b/parser/from_clause.go @@ -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, ","))