改进gdb.Tx.GetValue返回值类型

This commit is contained in:
John
2018-05-02 18:55:23 +08:00
parent cc42a572fe
commit 8d0ba9be03

View File

@ -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