Description
Case for SqlAdvisorTest:
@Test @WithLex(Lex.JAVA) public void testAdviceExpression() { String sql; sql = "select s.`count`+s.co^ from (select 1 `count` from emp) s"; assertComplete(sql, "COLUMN(count)\n", "co", ImmutableMap.of("COLUMN(count)", "`count`")); }
It should automatically quote the suggested column name count since otherwise it is confused with count keyword.
Attachments
Issue Links
- links to