-
- Downloads
[ADQL] Fix a Big Bug reported by M.Taylor and M.Demleitner: in ORDER BY, GROUP...
[ADQL] Fix a Big Bug reported by M.Taylor and M.Demleitner: in ORDER BY, GROUP BY and USING only regular and delimited identifiers are accepted, not qualified column names. For instance: "SELECT table.column_name FROM table ORDER BY table.column_name" is wrong. We should instead write: "SELECT table.column_name FROM table ORDER BY column_name". "SELECT table.column_name AS mycol FROM table ORDER BY mycol" is also correct. Of course, for ORDER BY and GROUP BY, it is still possible to reference a column using its index in the SELECT clause. For instance: "SELECT table.column_name FROM table ORDER BY 1".
Showing
- src/adql/parser/ADQLParser.java 10 additions, 10 deletionssrc/adql/parser/ADQLParser.java
- src/adql/parser/ADQLQueryFactory.java 25 additions, 1 deletionsrc/adql/parser/ADQLQueryFactory.java
- src/adql/parser/adqlGrammar.jj 11 additions, 11 deletionssrc/adql/parser/adqlGrammar.jj
- test/adql/parser/TestADQLParser.java 68 additions, 1 deletiontest/adql/parser/TestADQLParser.java
Loading
Please register or sign in to comment