From 7a0894fd37ec796ebb8f9fd7adeb5e3fd2b253de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=81=AB=E7=BA=BF=E5=85=94?= Date: Fri, 1 Oct 2021 15:41:56 +0800 Subject: [PATCH] =?UTF-8?q?tuncate=E5=90=8E=E6=B8=85=E9=99=A4=E8=A1=A8?= =?UTF-8?q?=E5=90=8D=EF=BC=8C=E9=81=BF=E5=85=8D=E8=BF=9E=E5=9D=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- orm.go | 1 + 1 file changed, 1 insertion(+) diff --git a/orm.go b/orm.go index 48fb1b8..273be31 100644 --- a/orm.go +++ b/orm.go @@ -275,6 +275,7 @@ func (dba *Orm) Truncate() (err error) { return } _, err = dba.Execute("TRUNCATE " + dba.table) + dba.ResetTable() return }