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

Bulk delete on element collections generates wrong sql when property reference is used

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Out of Date
    • Affects Version/s: 4.2.13
    • Fix Version/s: None
    • Component/s: testsuite
    • Labels:
      None
    • Environment:
      SAP/SYBASE ASE database
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true
    • Sprint:

      Description

      Failure on these tests
      org.hibernate.test.propertyref.basic.PropertyRefTest.testJoinFetchPropertyRef
      org.hibernate.test.propertyref.basic.PropertyRefTest.testManyToManyPropertyRef
      org.hibernate.test.propertyref.basic.PropertyRefTest.testOneToOnePropertyRef

      with an error on delete below - Implicit conversion from datatype 'VARCHAR' to 'BIGINT' is not allowed. Use the CONVERT function to run this query

      create table USER_SYSTEM (
      USER_ID varchar(255) not null,
      SYSTEM varchar(255) null
      ) lock datarows

      create table PROPREF_PERS (
      id bigint not null,
      name varchar(100) null,
      person_userid varchar(8) not null,
      primary key (id)
      ) lock datarows

      delete
      from
      USER_SYSTEM
      where
      (
      USER_ID
      ) in (
      select
      id
      from
      PROPREF_PERS
      )

        Attachments

          Issue links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: