Derby
  1. Derby
  2. DERBY-5139

User schema not auto-created on creation of self-referencing table

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 10.7.1.1
    • Fix Version/s: None
    • Component/s: SQL
    • Urgency:
      Normal
    • Issue & fix info:
      Repro attached

      Description

      The schema for the current user is usually auto-created on the first DDL operation if it doesn't already exist. If the DDL is a CREATE TABLE statement that creates a self-referencing table, however, the schema is not created, and the CREATE TABLE statement fails:

      ij version 10.7
      ij> connect 'jdbc:derby:testdb;create=true;user=alice';
      ij> create table self_referencing_t1(x int primary key, y int references self_referencing_t1);
      ERROR 42Y07: Schema 'ALICE' does not exist

        Issue Links

          Activity

          Knut Anders Hatlen created issue -
          Knut Anders Hatlen made changes -
          Field Original Value New Value
          Link This issue is related to DERBY-5101 [ DERBY-5101 ]
          Mamta A. Satoor made changes -
          Labels derby_triage10_9
          Urgency Normal [ 10052 ]
          Gavin made changes -
          Workflow jira [ 12607927 ] Default workflow, editable Closed status [ 12800959 ]
          Rick Hillegas made changes -
          Link This issue is related to DERBY-6361 [ DERBY-6361 ]
          Myrna van Lunteren made changes -
          Link This issue Is contained by DERBY-6498 [ DERBY-6498 ]

            People

            • Assignee:
              Unassigned
              Reporter:
              Knut Anders Hatlen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Development