Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-5139

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: 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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: