Skip to content

Commit

Permalink
feat: if DB column is boolean convert string "true" and '1' to true (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
yurem committed Nov 13, 2023
1 parent 43dacdd commit 3373497
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -499,7 +499,7 @@ private Object prepareTypedExpressionValue(TableMapping tableMapping, Filter fil
String columnType = attributeType.getType();
java.sql.JDBCType jdbcType = java.sql.JDBCType.valueOf(StringHelper.toUpperCase(columnType));

if (jdbcType == java.sql.JDBCType.SMALLINT) {
if ((jdbcType == java.sql.JDBCType.SMALLINT) || (jdbcType == java.sql.JDBCType.BOOLEAN)) {
if (StringHelper.equalsIgnoreCase((String) assertionValue, "true") || StringHelper.equalsIgnoreCase((String) assertionValue, "1")) {
assertionValue = 1;
}
Expand Down

0 comments on commit 3373497

Please sign in to comment.