From 0785d39f7f12d0bc4676d4c3203af8e8cbde539e Mon Sep 17 00:00:00 2001 From: John Date: Wed, 2 May 2018 18:55:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Bgdb.Tx.GetValue=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E5=80=BC=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- g/database/gdb/gdb_transaction.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g/database/gdb/gdb_transaction.go b/g/database/gdb/gdb_transaction.go index 8db23af3d..f04236f01 100644 --- a/g/database/gdb/gdb_transaction.go +++ b/g/database/gdb/gdb_transaction.go @@ -112,7 +112,7 @@ func (tx *Tx) GetOne(query string, args ...interface{}) (Record, error) { } // (事务)数据库查询,获取查询字段值 -func (tx *Tx) GetValue(query string, args ...interface{}) (interface{}, error) { +func (tx *Tx) GetValue(query string, args ...interface{}) (Value, error) { one, err := tx.GetOne(query, args ...) if err != nil { return nil, err