fix(statement): The primary key type is not int, but string or uuid (#5984)
This commit is contained in:
parent
38aa424c0f
commit
f19c8b4865
@ -292,7 +292,7 @@ func (stmt *Statement) BuildCondition(query interface{}, args ...interface{}) []
|
||||
// return []clause.Expression{clause.IN{Column: clause.PrimaryColumn, Values: []interface{}{s}}}
|
||||
//}
|
||||
|
||||
if len(args) == 0 || len(args) > 0 && strings.Contains(s, "?") {
|
||||
if len(args) == 0 || (len(args) > 0 && strings.Contains(s, "?")) {
|
||||
// looks like a where condition
|
||||
return []clause.Expression{clause.Expr{SQL: s, Vars: args}}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user