@@ -49,6 +49,7 @@ func TestCond(t *testing.T) {
4949 newTestPair ("$a IN ($1, $2, $3)" , func (c * Cond ) string { return c .In ("$a" , 1 , 2 , 3 ) }),
5050 newTestPair ("0 = 1" , func (c * Cond ) string { return c .In ("$a" ) }),
5151 newTestPair ("$a NOT IN ($1, $2, $3)" , func (c * Cond ) string { return c .NotIn ("$a" , 1 , 2 , 3 ) }),
52+ newTestPair ("0 = 0" , func (c * Cond ) string { return c .NotIn ("$a" ) }),
5253 newTestPair ("$a LIKE $1" , func (c * Cond ) string { return c .Like ("$a" , "%Huan%" ) }),
5354 newTestPair ("$a ILIKE $1" , func (c * Cond ) string { return c .ILike ("$a" , "%Huan%" ) }),
5455 newTestPair ("$a NOT LIKE $1" , func (c * Cond ) string { return c .NotLike ("$a" , "%Huan%" ) }),
@@ -135,7 +136,6 @@ func TestEmptyCond(t *testing.T) {
135136 newCond ().LessEqualThan ("" , 123 ),
136137 newCond ().In ("" , 1 , 2 , 3 ),
137138 newCond ().NotIn ("" , 1 , 2 , 3 ),
138- newCond ().NotIn ("a" ),
139139 newCond ().Like ("" , "%Huan%" ),
140140 newCond ().ILike ("" , "%Huan%" ),
141141 newCond ().NotLike ("" , "%Huan%" ),
0 commit comments