ignore AS when alias table as it doesn't work on oracle db, close #3328

This commit is contained in:
Jinzhu 2020-08-29 22:09:07 +08:00
parent 06461b3254
commit 677edf9d9e
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ func (stmt *Statement) QuoteTo(writer clause.Writer, field interface{}) {
}
if v.Alias != "" {
writer.WriteString(" AS ")
writer.WriteByte(' ')
stmt.DB.Dialector.QuoteTo(writer, v.Alias)
}
case clause.Column: