-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
release-23.1: sql: add plpgsql parser for telemetry purposes #103026
release-23.1: sql: add plpgsql parser for telemetry purposes #103026
Commits on May 10, 2023
-
sql: add plpgsql parser scaffold.
This commit adds the code generation portion of the parser. The parser does not parse statements yet. This commit also creates a base scanner struct so that the plpgsql and sql scanner can share methods. The two scanners have their own language specific scan methods. Release note: None
Configuration menu - View commit details
-
Copy full SHA for 257575a - Browse repository at this point
Copy the full SHA 257575aView commit details -
sql: declare section and exec sql
Adds the first test which parses an empty function or function with bare sql queries. Release note: None
Configuration menu - View commit details
-
Copy full SHA for 2765f30 - Browse repository at this point
Copy the full SHA 2765f30View commit details -
sql: add
lexer.ReadSqlExpressionStr()
andstmt_if
This commit adds `lexer.ReadSqlExpressionStr()` which gives access to the return type of a plpgsql function. This commit also adds grammar rules and AST for `stmt_if` Release note: None
Configuration menu - View commit details
-
Copy full SHA for 25f17f9 - Browse repository at this point
Copy the full SHA 25f17f9View commit details -
sql: add plpgsql
decl_header
andstmt_assert
This commit adds AST and grammar rules for `decl_header` and `stmt_assert` Release note: None
Configuration menu - View commit details
-
Copy full SHA for 6820fdb - Browse repository at this point
Copy the full SHA 6820fdbView commit details -
sql: stmt_call, stmt_close, stmt_dynaexec, stmt_exit
This commit adds the AST and grammar rules for `stmt_call`, `stmt_close`, `stmt_dynaexec`, and `stmt_exit` Release note: None
Configuration menu - View commit details
-
Copy full SHA for 6cd98d9 - Browse repository at this point
Copy the full SHA 6cd98d9View commit details -
sql: stmt_assign and stmt_getdiag
This commit adds the AST and grammar rules for `stmt_assign` and `stmt_getdiag` Release note: None
Configuration menu - View commit details
-
Copy full SHA for 7b245cb - Browse repository at this point
Copy the full SHA 7b245cbView commit details -
sql: Adds support for stmt_case
This commit adds portions of the logic to parse `stmt_case`. Does not yet support ELSE, sql statements in THEN body, or END CASE (it uses an ENDCASE hack). Release note: None
Configuration menu - View commit details
-
Copy full SHA for 3b22ee1 - Browse repository at this point
Copy the full SHA 3b22ee1View commit details -
This commit corrects the grammar rules for `stmt_case`. Release note: None
Configuration menu - View commit details
-
Copy full SHA for b4d7d8d - Browse repository at this point
Copy the full SHA b4d7d8dView commit details -
sql: Complete stmt_if, elsif, else logic
This commit corrects the grammar rules and AST of `stmt_if`, `elsif`, `else` statements. Release note: None
Configuration menu - View commit details
-
Copy full SHA for 4d21772 - Browse repository at this point
Copy the full SHA 4d21772View commit details -
This commit adds logic for `stmt_open` Release note: None
Configuration menu - View commit details
-
Copy full SHA for 16acd8c - Browse repository at this point
Copy the full SHA 16acd8cView commit details -
server,sql: Make the statement struct generic
This commit makes Statement generic so it can be shared between the sql and plpgsql parsers. Release note: None
Configuration menu - View commit details
-
Copy full SHA for 0216286 - Browse repository at this point
Copy the full SHA 0216286View commit details