think-orm icon indicating copy to clipboard operation
think-orm copied to clipboard

v1.2.17 parseIn 方法没有处理空数组场景

Open a501986411 opened this issue 3 years ago • 1 comments

当我使用in查询时,传入的数组是一个空数组,生成的SQL类似如下: select * from table where field in (""); 这种会把数据控制feild为空字符串的数据记录查询出来。 这种问题会安排修复吗?

a501986411 avatar Sep 26 '22 02:09 a501986411

这个不算问题吧,你传入null试试,好像就不会生成in查询语句了

augushong avatar Sep 26 '22 02:09 augushong