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

[QE] (7.0.z) [HHH-11073] Casting to boolean in query fails on MySQL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.0.3.GA
    • 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:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: