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

Quoted names with embedded period mishandled in from list

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.0.2.0
    • 10.1.1.0
    • SQL
    • None

    Description

      Opening this bug on behalf of Satheesh Bandaram

      ---------------------------------------------------------
      The compiler mishandles quoted names with embedded periods when
      checking uniqueness of table names in the from list of a
      SELECT. Consider the following SQL:
      create table "S1.T1" (id int not null primary key, d1 int);
      create schema s1;
      create table s1.t1 (id int not null primary key, d2 int);
      select * from s1.t1, "S1.T1" where s1.t1.id = "S1.T1".id;
      Derby throws an error on the final SELECT statement:
      "ERROR 42X09: The table or alias name 'S1.T1' is used more than
      once in the FROM list". However s1.t1 and "S1.T1" are different
      tables.

      Attachments

        1. derbylang_report.txt
          12 kB
          Shreyas
        2. Derby-13.diff
          12 kB
          Shreyas
        3. Derby-13.patch
          1 kB
          Shreyas

        Activity

          People

            shreyas Shreyas
            ramank Ramandeep Kaur
            Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: