Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-1416

Given a schema name, DatabaseMetadata.getTables and getColumns calls erroneously match tables without schema

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.0
    • Fix Version/s: 4.3.0, 3.3.0, 4.2.1, 3.2.1
    • Labels:
      None
    • Environment:

      Any unix or windows platform

      Description

      When calling DatabaseMetadata.getTables and getColumns to find a table defined with a particular schema, the Phoenix JDBC driver also returns description of a table with the same tablename, but empty schema.

      eg, calling getTables(null, "R729999D", TABLE1, "TABLE");

      matches tables R729999D.TABLE1 and TABLE1 (no schema). It should return information on only table R729999D.TABLE1.

        Attachments

        1. PHOENIX-1416.patch
          10 kB
          James R. Taylor

          Activity

            People

            • Assignee:
              jamestaylor James R. Taylor
              Reporter:
              sergiolob Sergio Lob
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: