From f82f7ab1997519d349ee1e32e02d51f346c806af Mon Sep 17 00:00:00 2001 From: John Date: Fri, 3 Apr 2020 10:16:57 +0800 Subject: [PATCH] change default value of safe from false to true for gdb.Model --- database/gdb/gdb_model.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/gdb/gdb_model.go b/database/gdb/gdb_model.go index 0e0f76084..df9597b0e 100644 --- a/database/gdb/gdb_model.go +++ b/database/gdb/gdb_model.go @@ -69,7 +69,7 @@ func (c *Core) Table(table string) *Model { fields: "*", start: -1, offset: -1, - safe: false, + safe: true, option: OPTION_ALLOWEMPTY, } } @@ -99,7 +99,7 @@ func (tx *TX) Table(table string) *Model { fields: "*", start: -1, offset: -1, - safe: false, + safe: true, option: OPTION_ALLOWEMPTY, } }