support NOT IN

This commit is contained in:
Looly
2023-10-18 18:51:20 +08:00
parent db0c9dd497
commit c3b8f8daaa
2 changed files with 29 additions and 4 deletions

View File

@@ -80,4 +80,10 @@ public class ConditionTest {
final Condition age = Condition.parse("age", "in 1,2,3");
Assertions.assertEquals("age IN (?,?,?)", age.toString());
}
@Test
void notInTest() {
final Condition age = Condition.parse("age", "not in 1,2,3");
Assertions.assertEquals("age NOT IN (?,?,?)", age.toString());
}
}