fix:remove the tableName judgment in pluck

This commit is contained in:
kinggo 2021-09-27 21:50:48 +08:00
parent 5202529ea1
commit 308b4e363f

View File

@ -483,8 +483,6 @@ func (db *DB) Pluck(column string, dest interface{}) (tx *DB) {
column = f.DBName
}
}
} else if tx.Statement.Table == "" {
tx.AddError(ErrModelValueRequired)
}
if len(tx.Statement.Selects) != 1 {