Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-642

Sybase create foreign key on delete set null failed with syntax error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • None
    • None

    Description

      The following alter table statement is rejected:

      ALTER TABLE dbo.JPADeptBean
      ADD CONSTRAINT FK_EmpBean_mgr FOREIGN KEY (MGR_EMPID) REFERENCES dbo.JPAEmpBean (empid) ON DELETE SET NULL

      with com.sybase.jdbc3.jdbc.SybSQLException: Incorrect syntax near the keyword 'ON'.

      According to Sybase IQ 12.7, Sybase only supports foreign key on delete/update restrict.

      http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.dc38151_1270/html/iqref/BABCGFHG.htm

      Attachments

        1. openjpa-642.patch
          0.9 kB
          Fay Wang

        Activity

          People

            mikedd Michael Dick
            faywang Fay Wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: