File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
src/queryparser/postgresql Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,8 @@ OUTER : O_ U_ T_ E_ R_ ;
130130PARTITION_SYM : P_ A_ R_ T_ I_ T_ I_ O_ N_ ;
131131PDIST : P_ D_ I_ S_ T_ ;
132132PI : P_ I_ ;
133+ POINT : P_ O_ I_ N_ T_ ;
134+ POLYGON : P_ O_ L_ Y_ G_ O_ N_ ;
133135POSITION_SYM : P_ O_ S_ I_ T_ I_ O_ N_ ;
134136POW : P_ O_ W_ ;
135137POWER : P_ O_ W_ E_ R_ ;
Original file line number Diff line number Diff line change @@ -243,7 +243,8 @@ pg_sphere_op:
243243 | SNOTOVERLAP ;
244244
245245sbit_expr :
246- ( pg_sphere_object | spoint )
246+ ( polygon pg_sphere_op point )
247+ | ( pg_sphere_object | spoint )
247248 | ( ( spoint | simple_expr ) pg_sphere_op pg_sphere_object)
248249 | ( pg_sphere_object EQ pg_sphere_object )
249250 | ( pg_sphere_object pg_sphere_op pg_sphere_object )
@@ -255,6 +256,8 @@ sbit_expr:
255256 | ( ( spoint | scircle | sline | sellipse | spoly | spath | simple_expr ) ( ( PLUS | MINUS )? strans )+ ) ;
256257
257258
259+ polygon : POLYGON string_literal ;
260+ point : POINT LPAREN bit_expr COMMA bit_expr RPAREN ;
258261spoint : SPOINT LPAREN bit_expr COMMA bit_expr RPAREN ;
259262scircle : SCIRCLE LPAREN spoint COMMA bit_expr RPAREN ;
260263sline : ( SLINE LPAREN spoint COMMA spoint RPAREN ) | ( SLINE LPAREN strans COMMA bit_expr RPAREN );
You can’t perform that action at this time.
0 commit comments