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.

        Activity

        Show
        julianhyde Julian Hyde added a comment - Fixed in http://git-wip-us.apache.org/repos/asf/calcite/commit/40e5b884 .
        Hide
        julianhyde Julian Hyde added a comment -

        Resolved in release 1.12.0 (2017-03-24).

        Show
        julianhyde Julian Hyde added a comment - Resolved in release 1.12.0 (2017-03-24).

          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:

              Development