Skip to content

Add support for DROP DATABASE ... SYNC - #309

Merged
git-hulk merged 1 commit into
AfterShip:masterfrom
vincentbernat:fix/drop-database-sync
Aug 6, 2026
Merged

Add support for DROP DATABASE ... SYNC#309
git-hulk merged 1 commit into
AfterShip:masterfrom
vincentbernat:fix/drop-database-sync

Conversation

@vincentbernat

Copy link
Copy Markdown
Contributor

DROP DATABASE accepts the same SYNC and NO DELAY modifiers as DROP
TABLE, but only parseDropStmt handled them, so these were rejected:

DROP DATABASE IF EXISTS test_db SYNC
DROP DATABASE IF EXISTS test_db ON CLUSTER akvorado SYNC

Reuse tryParseModifier, which DROP TABLE and DROP USER already share.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

DROP DATABASE accepts the same SYNC and NO DELAY modifiers as DROP
TABLE, but only parseDropStmt handled them, so these were rejected:

  DROP DATABASE IF EXISTS test_db SYNC
  DROP DATABASE IF EXISTS test_db ON CLUSTER akvorado SYNC

Reuse tryParseModifier, which DROP TABLE and DROP USER already share.
@vincentbernat
vincentbernat force-pushed the fix/drop-database-sync branch from 206f0de to e9a3a6d Compare August 5, 2026 13:39
@git-hulk

git-hulk commented Aug 6, 2026

Copy link
Copy Markdown
Member

@vincentbernat Thank you.

@git-hulk
git-hulk merged commit 2a4a14c into AfterShip:master Aug 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants