From 30b1846630acec87177bae1d03ff1c206db32fab Mon Sep 17 00:00:00 2001 From: riverchu Date: Wed, 29 Sep 2021 12:53:26 +0800 Subject: [PATCH] fix: table alias without AS --- statement.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statement.go b/statement.go index 347f88ff..6176da06 100644 --- a/statement.go +++ b/statement.go @@ -96,7 +96,7 @@ func (stmt *Statement) QuoteTo(writer clause.Writer, field interface{}) { } if v.Alias != "" { - writer.WriteByte(' ') + writer.WriteString(" AS ") write(v.Raw, v.Alias) } case clause.Column: