From 53351218b4437033a87db20926291ddb8b6f2179 Mon Sep 17 00:00:00 2001 From: guzeng Date: Fri, 5 Mar 2021 11:35:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9F=A5=E8=AF=A2=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chain.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chain.go b/chain.go index 9f05bdc..d5fa2b6 100644 --- a/chain.go +++ b/chain.go @@ -117,10 +117,10 @@ func (this *Query) QueryStmt() error { sql = helper.StringJoin("select ", title) if this.alias != "" { - this.table = helper.StringJoin(table, " as ", this.alias) + table = helper.StringJoin(table, " as ", this.alias) } - sql = helper.StringJoin(sql, " from ", this.table) + sql = helper.StringJoin(sql, " from ", table) if len(this.join) > 0 { for _, joinitem := range this.join {