Merge pull request #5172 from influxdata/quoteident-alias

Add missing QuoteIdent
pull/5130/merge
Mark Rushakoff 2016-01-06 17:00:34 -08:00
commit 6022775c55
1 changed files with 1 additions and 1 deletions

View File

@ -2522,7 +2522,7 @@ func (f *Field) String() string {
if f.Alias == "" {
return str
}
return fmt.Sprintf("%s AS %s", str, fmt.Sprintf(`"%s"`, f.Alias))
return fmt.Sprintf("%s AS %s", str, QuoteIdent(f.Alias))
}
// Sort Interface for Fields