Skip to content

Quarkus 3.28.4 generating syntax errors on DB2 #52557

@danillob

Description

@danillob

Describe the bug

After upgrading Quarkus version from 3.28.1 to 3.28.4, using the quarkus-jdbc-db2 dependency, HQL started presenting syntax error on execution.

Expected behavior

Queries executed correctly.

Actual behavior

Erro generated:

org.hibernate.exception.SQLGrammarException: JDBC exception executing SQL [DB2 SQL Error: SQLCODE=-104, SQLSTATE=42601, SQLERRMC=(;. JOIN INNER LEFT RIGHT FULL CROSS, DRIVER=4.34.30]

How to Reproduce?

Upgrade a working project that uses PanacheEntityBase models that have table joins from verson <= 3.28.1 to >= 3.28.4, and execute a previous working query.

Output of uname -a or ver

No response

Output of java -version

21.0.1

Quarkus version or git rev

3.28.4

Build tool (ie. output of mvnw --version or gradlew --version)

Maven 3.9.6

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions