Skip to content

Commit

Permalink
support multi or query
Browse files Browse the repository at this point in the history
support multi or query
  • Loading branch information
tuweizhong authored Jan 23, 2022
1 parent 2e11a7e commit 4e66a65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builder/builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,8 @@ func Test_BuildUpdate(t *testing.T) {
},
},
out: outStruct{
cond: "UPDATE tb SET district=?,score=? WHERE (((x1=? AND x2>=?) OR (x3=? AND x4!=?)) AND foo=? AND sex IN (?,?) AND age>=?)",
vals: []interface{}{"010", 50, 11, 45, "234", "tx2", "bar", "male", "female", 23},
cond: "UPDATE tb SET district=?,score=? WHERE (((x1=? AND x2>=?) OR (x3=? AND x4!=?)) AND ((id=?) OR (act_id=?)) AND foo=? AND sex IN (?,?) AND age>=?)",
vals: []interface{}{"010", 50, 11, 45, "234", "tx2", "11", "11", "bar", "male", "female", 23},
err: nil,
},
},
Expand Down

0 comments on commit 4e66a65

Please sign in to comment.