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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.12.0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: