Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-1563

In case-insensitive connection, non-existent tables use alphabetically preceding table

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.12.0
    • Component/s: None
    • Labels:
      None

      Description

      In case-insensitive connection, non-existent tables use alphabetically preceding table. For example, in JdbcTest, the following test passes

        @Test public void testLexCaseInsensitiveFindsNonExistentTable() {
          final CalciteAssert.AssertThat with =
              CalciteAssert.that().with(Lex.MYSQL);
          with.query("select COUNT(*) as c from `metaData`.`zoo`")
              .returns("c=2\n");
        }
      

      even though there is no table called "zoo", because it finds the "tables" table instead.

        Attachments

          Activity

            People

            • Assignee:
              julianhyde Julian Hyde
              Reporter:
              julianhyde Julian Hyde
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: