mybatis / mybatis-dynamic-sql

SQL DSL (Domain Specific Language) for Kotlin and Java. Supports rendering for MyBatis or Spring JDBC Templates
http://www.mybatis.org/mybatis-dynamic-sql/docs/introduction.html
Apache License 2.0
1.1k stars 213 forks source link

Throw InvalidSqlException during rendering if an In condition is empty #833

Closed jeffgbutler closed 2 months ago

jeffgbutler commented 2 months ago

This changes the prior behavior where the condition would render as invalid SQL and a runtime exception from the database was expected.

coveralls commented 2 months ago

Coverage Status

coverage: 100.0%. remained the same when pulling f03663176d3eea6286bc5e6c6646c3b7d39936ed on jeffgbutler:empty-list-exception into 68cadc571d552f08a00e88110116c5f1b328b452 on mybatis:master.