From 677edf9d9e3fc2f435e0668f74126a118fa97c25 Mon Sep 17 00:00:00 2001 From: Jinzhu Date: Sat, 29 Aug 2020 22:09:07 +0800 Subject: [PATCH] ignore AS when alias table as it doesn't work on oracle db, close #3328 --- statement.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statement.go b/statement.go index fba1991d..d72a086f 100644 --- a/statement.go +++ b/statement.go @@ -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: