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