Skip to content

Commit

Permalink
update the test
Browse files Browse the repository at this point in the history
  • Loading branch information
xgfone committed Aug 7, 2023
1 parent e75098e commit 0faf040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion op_condition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestAnd(t *testing.T) {
cond1 := op.Eq("k1", "v1")
cond2 := op.And(cond1, op.Gt("k2", 111), op.Le("k3", 222))
cond3 := op.Or(op.In("k4", "v41", "v42"), op.Between("k5", 333, 444))
cond4 := op.And(cond2, cond3)
cond4 := op.And(cond2, cond3, op.And(op.And()))

ab := NewArgsBuilder(MySQL)
sql := BuildOper(ab, op.And(appendWheres(nil, cond4)...))
Expand Down

0 comments on commit 0faf040

Please sign in to comment.