Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-5815

[HHH-11073] Casting to boolean in query fails on MySQL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.DR9
    • None
    • Hibernate
    • None

      https://hibernate.atlassian.net/browse/HHH-11073

      Hibernate converts a query like:

      select cast( true as boolean ) ...

      to SQL:

      select cast ( 1 as bit ) ....

      Instead, Hibernate should be converted to SQL:

      select cast ( 1 as char ) ....

              gbadner@redhat.com Gail Badner (Inactive)
              msimka@redhat.com Martin Simka
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: