Pewarta Proxy

📋 Server Request & Proxy Logs

Loading active proxy settings...
Developed by Khairul Adha (adhexa.id)
Mengambil log server...

⚙️ Pengaturan Proxy Target

Skip to content

PostgreSQL: Support BEGIN ATOMIC procedure bodies - #2773

Open
LucaCappelletti94 wants to merge 2 commits into
mainfrom
upstream/begin-atomic-procedure-body
Open

LucaCappelletti94 wants to merge 2 commits into
mainfrom
upstream/begin-atomic-procedure-body

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

CREATE PROCEDURE p() LANGUAGE sql BEGIN ATOMIC INSERT INTO t VALUES (1); END failed with Expected: AS, found: BEGIN under both PostgreSqlDialect and GenericDialect. PostgreSQL accepts the same SQL-standard body for procedures as for functions (https://www.postgresql.org/docs/current/sql-createprocedure.html), as raised in the review of #2728.

@codecov-commenter

codecov-commenter commented Oct 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.68%. Comparing base (a368259) to head (26e459d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2773      +/-   ##
==========================================
+ Coverage   82.66%   82.68%   +0.01%     
==========================================
  Files          42       42              
  Lines       35660    35674      +14     
  Branches    35660    35674      +14     
==========================================
+ Hits        29480    29498      +18     
+ Misses       2659     2658       -1     
+ Partials     3521     3518       -3     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread tests/sqlparser_postgres.rs Outdated
}

#[test]
fn parse_create_procedure_begin_atomic() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parse_create_procedure has no dialect gating and the other CREATE PROCEDURE tests live in sqlparser_common.rs, so this one could go there with all_dialects(); every dialect round-trips these inputs.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@LucaCappelletti94
LucaCappelletti94 force-pushed the upstream/begin-atomic-procedure-body branch from 637067e to bd7af2f Compare October 30, 2026 21:08
@LucaCappelletti94
LucaCappelletti94 force-pushed the upstream/begin-atomic-procedure-body branch 2 times, most recently from bce24b8 to 22ea3a6 Compare October 31, 2026 08:30
@LucaCappelletti94
LucaCappelletti94 force-pushed the upstream/begin-atomic-procedure-body branch from 22ea3a6 to 26e459d Compare October 31, 2026 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants