Skip to content

Commit 18094a0

Browse files
committed
fix the order_by_clause for the dot-separated col references
1 parent 9eeebee commit 18094a0

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.6.1 (2022-11-17)
2+
3+
- fixed the `ORDER BY` clause for the dot-separated column references
4+
15
## 0.6.0 (2022-11-04)
26

37
- bump the version of `antlr4-python3-runtime` to 4.11.1

src/queryparser/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__title__ = 'queryparser'
2-
__version__ = '0.6.0'
2+
__version__ = '0.6.1'
33
__author__ = 'Gal Matijevic'
44
__email__ = 'gmatijevic@aip.de'
55
__license__ = 'Apache-2.0'

src/queryparser/adql/ADQLParser.g4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ set_limit: TOP unsigned_decimal ;
162162
set_quantifier: DISTINCT | ALL ;
163163
sign: PLUS | MINUS ;
164164
signed_integer: ( sign )? unsigned_decimal ;
165-
sort_key: column_name | unsigned_decimal ;
165+
sort_key: value_expression| column_reference | unsigned_decimal ;
166166
sort_specification: sort_key (ordering_specification )? ;
167167
sort_specification_list: sort_specification ( COMMA sort_specification )* ;
168168
string_geometry_function: extract_coordsys ;
@@ -217,4 +217,4 @@ value_expression_primary:
217217
| set_function_specification
218218
| LPAREN value_expression RPAREN ;
219219
where_clause: WHERE search_condition ;
220-
with_query: query_name ( LPAREN column_name ( COMMA column_name )* RPAREN )? AS LPAREN ( query_specification )? RPAREN ;
220+
with_query: query_name ( LPAREN column_name ( COMMA column_name )* RPAREN )? AS LPAREN ( query_specification )? RPAREN ;

0 commit comments

Comments
 (0)