From a14198ddc748d2a15193029d26db13ec604d6d54 Mon Sep 17 00:00:00 2001 From: qbhy <96qbhy@gmail.com> Date: Wed, 26 Jan 2022 00:17:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E6=83=85=E5=86=B5=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- table/table.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/table/table.go b/table/table.go index 4d1db53..ae1a3f7 100644 --- a/table/table.go +++ b/table/table.go @@ -39,7 +39,7 @@ func FromModel(model contracts.Model) *Table { // WithConnection 使用指定链接 func WithConnection(name string, connection interface{}) *Table { if connection == "" || connection == nil { - return getTable(name) + return Query(name) } return getTable(name).SetConnection(connection) }