@@ -271,7 +271,11 @@ public Stream<? extends Arguments> provideArguments(ExtensionContext context) th
271
271
Arguments .of ("select col from table1 as t1, table2 as t2" , expect ("SELECT" , null )),
272
272
Arguments .of (
273
273
"select col from table where col in (1, 2, 3)" ,
274
- expect ("select col from table where col in (?, ?, ?)" , "SELECT" , "table" )),
274
+ expect ("select col from table where col in(?)" , "SELECT" , "table" )),
275
+ Arguments .of (
276
+ "select 'a' IN(x, 'b') from table where col in(1) and z IN( '3', '4' )" ,
277
+ expect (
278
+ "select ? IN(x, ?) from table where col in(?) and z in(?)" , "SELECT" , "table" )),
275
279
Arguments .of ("select col from table order by col, col2" , expect ("SELECT" , "table" )),
276
280
Arguments .of ("select ąś∂ń© from źćļńĶ order by col, col2" , expect ("SELECT" , "źćļńĶ" )),
277
281
Arguments .of ("select 12345678" , expect ("select ?" , "SELECT" , null )),
@@ -298,6 +302,9 @@ public Stream<? extends Arguments> provideArguments(ExtensionContext context) th
298
302
"delete from `my table` where something something" , expect ("DELETE" , "my table" )),
299
303
Arguments .of (
300
304
"delete from \" my table\" where something something" , expect ("DELETE" , "my table" )),
305
+ Arguments .of (
306
+ "delete from foo where x IN(1, 2, 3)" ,
307
+ expect ("delete from foo where x in(?)" , "DELETE" , "foo" )),
301
308
Arguments .of ("delete from 12345678" , expect ("delete from ?" , "DELETE" , null )),
302
309
Arguments .of ("delete (((" , expect ("delete (((" , "DELETE" , null )),
303
310
@@ -307,6 +314,9 @@ public Stream<? extends Arguments> provideArguments(ExtensionContext context) th
307
314
Arguments .of (
308
315
"update `my table` set answer=42" ,
309
316
expect ("update `my table` set answer=?" , "UPDATE" , "my table" )),
317
+ Arguments .of (
318
+ "update `my table` set answer=42 where x IN('a', 'b')" ,
319
+ expect ("update `my table` set answer=? where x in(?)" , "UPDATE" , "my table" )),
310
320
Arguments .of (
311
321
"update \" my table\" set answer=42" ,
312
322
expect ("update \" my table\" set answer=?" , "UPDATE" , "my table" )),
0 commit comments