enhance: modify sql.y
This commit is contained in:
parent
3c2bf19706
commit
9fb9d863b9
|
@ -1009,10 +1009,11 @@ join_type(A) ::= INNER.
|
||||||
|
|
||||||
/************************************************ query_specification *************************************************/
|
/************************************************ query_specification *************************************************/
|
||||||
query_specification(A) ::=
|
query_specification(A) ::=
|
||||||
SELECT set_quantifier_opt(B) select_list(C) from_clause_opt(D)
|
SELECT tag_mode_opt(M) set_quantifier_opt(B) select_list(C) from_clause_opt(D)
|
||||||
where_clause_opt(E) partition_by_clause_opt(F) range_opt(J) every_opt(K)
|
where_clause_opt(E) partition_by_clause_opt(F) range_opt(J) every_opt(K)
|
||||||
fill_opt(L) twindow_clause_opt(G) group_by_clause_opt(H) having_clause_opt(I). {
|
fill_opt(L) twindow_clause_opt(G) group_by_clause_opt(H) having_clause_opt(I). {
|
||||||
A = createSelectStmt(pCxt, B, C, D);
|
A = createSelectStmt(pCxt, B, C, D);
|
||||||
|
A = setSelectStmtTagMode(pCtxt, A, M);
|
||||||
A = addWhereClause(pCxt, A, E);
|
A = addWhereClause(pCxt, A, E);
|
||||||
A = addPartitionByClause(pCxt, A, F);
|
A = addPartitionByClause(pCxt, A, F);
|
||||||
A = addWindowClauseClause(pCxt, A, G);
|
A = addWindowClauseClause(pCxt, A, G);
|
||||||
|
@ -1023,6 +1024,11 @@ query_specification(A) ::=
|
||||||
A = addFillClause(pCxt, A, L);
|
A = addFillClause(pCxt, A, L);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
%type tag_mode_opt { bool }
|
||||||
|
%destructor tag_mode_opt { }
|
||||||
|
tag_mode_opt(A) ::= . { A = false; }
|
||||||
|
tag_mode_opt(A) ::= TAGS. { A = true; }
|
||||||
|
|
||||||
%type set_quantifier_opt { bool }
|
%type set_quantifier_opt { bool }
|
||||||
%destructor set_quantifier_opt { }
|
%destructor set_quantifier_opt { }
|
||||||
set_quantifier_opt(A) ::= . { A = false; }
|
set_quantifier_opt(A) ::= . { A = false; }
|
||||||
|
|
Loading…
Reference in New Issue