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

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.0.3.GA
    • None
    • Hibernate
    • None

    Description

      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 ) ....

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: