Uploaded image for project: 'Hibernate ORM'
  1. Hibernate ORM
  2. HHH-11530

IdentityGeneratorExtendsTest.testIdentifierGeneratorExtendsIdentityGenerator failing on Oracle DBs

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.8
    • Fix Version/s: 5.1.5, 5.2.9
    • Component/s: testsuite
    • Labels:
      None
    • Environment:
      Oracle
    • Last commented by a user?:
      true

      Description

      Oracle can't handle an insert statement with no values, which is what happens when entity has no columns except an identity column.

      Hibernate:
      insert
      into
      EntityBean

      values
      ( )
      03:09:40,752 WARN SqlExceptionHelper:129 - SQL Error: 936, SQLState: 42000
      03:09:40,752 ERROR SqlExceptionHelper:131 - ORA-00936: missing expression

      Workaround is to add another property to the entity so the insert has a value.

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                gbadner Gail Badner
                Reporter:
                gbadner Gail Badner
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: