From e8fe2a04eb8b3746d4be58511541fe880d0e2444 Mon Sep 17 00:00:00 2001 From: xxj <346944475@qq.com> Date: Fri, 6 Sep 2024 16:56:48 +0800 Subject: [PATCH] Update genfunc_test.go --- data/view/genfunc/genfunc_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/view/genfunc/genfunc_test.go b/data/view/genfunc/genfunc_test.go index 93800c5..8b29a03 100644 --- a/data/view/genfunc/genfunc_test.go +++ b/data/view/genfunc/genfunc_test.go @@ -79,7 +79,7 @@ func TestFuncOption(t *testing.T) { // sqldb, _ := db.DB() // sqldb.Close() // }() - orm := mysqldb.OnInitDBOrm("root:123456@tcp(127.0.0.1:3306)/matrix?charset=utf8&parseTime=True&loc=Local&interpolateParams=True") // 推荐方式 + orm := mysqldb.OnInitDBOrm("root:123456@tcp(127.0.0.1:3306)/matrix?charset=utf8&parseTime=True&loc=Local&interpolateParams=True", true) // 推荐方式 defer orm.OnDestoryDB() db := orm.DB