Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Currently if we see an asterisk in an identifier, we translate it to an identifier name segment called "*". If there happens to be a table, column or field called "*" we're sunk.
Star can only validly occur in the SELECT clause (not in FROM or WHERE). Examples: select emp.* from emp, select x from sales.*, select 1 from emp where emp.* is not null.
This task is to test with tables, columns, fields called "*", and use a special value in SqlIdentifier. Maybe the empty string would work. Names cannot be empty.
Attachments
Issue Links
- is duplicated by
-
CALCITE-904 Allow "*" as an identifier (quoted, of course)
- Closed