# DB2 z/OS doesn't support boolean parameters

**URL:** <https://discourse.hibernate.org/t/db2-z-os-doesnt-support-boolean-parameters/12440>\
**Category:** Hibernate ORM\
**Created:** [September 22, 2026, 1:30pm UTC](https://discourse.hibernate.org/t/db2-z-os-doesnt-support-boolean-parameters/12440 "2026-09-22T13:30:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![avraham.nissimov](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@avraham.nissimov](https://discourse.hibernate.org/u/avraham.nissimov)\
**Post date:** [September 22, 2026, 1:30pm UTC](https://discourse.hibernate.org/t/db2-z-os-doesnt-support-boolean-parameters/12440/1 "2026-09-22T13:30:11Z")

</div>

In the newer versions of Hibernate, DB2SqlAstTranslator does not support older versions syntax for boolean expressions.

For instance for method visitBooleanExpressionPredicate(), as of version 6.6.26, the implementation was written this way:

```auto
	if ( getDB2Version().isSameOrAfter( 11 ) ) {

```

However, as of version 7.2.0, this line is missing.

The source of the change is “HHH-18639 Remove support for DB2 versions older than 11.1 and start testing with DB2 12.1”

This appears problematic for DB2 z/OS. The new format is not supported in this implementation, and is not expected to be, by the vendor:

> **[Db2 13 - Java - Data types that map to database data types in Java applications](https://www.ibm.com/docs/en/db2-for-zos/13.0.0?topic=jsri-data-types-that-map-database-data-types-in-java-applications#imjcc_rjvjdata__jvseta)**
>
> The following table summarizes the mappings of Java data types to database data types for PreparedStatement.setXXX or ResultSet.updateXXX methods in JDBC programs, and for input host expressions in SQLJ programs. When more than one Java data type is...

We managed to create a workaround; however we strongly suggest to retain the old behavior for DB2 z/OS.

Please share your thoughts / recommendations. Thanks.
