mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
改进gdb.Tx.GetValue返回值类型
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user