Skip to content

Drop GRANT role TO role with the access-control warning - #170

Merged
LucaCappelletti94 merged 1 commit into
mainfrom
upstream/grant-role-membership
Oct 28, 2026
Merged

LucaCappelletti94 merged 1 commit into
mainfrom
upstream/grant-role-membership

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Collaborator

sqlparser main now parses GRANT role TO grantee as Statement::GrantRole (apache/datafusion-sqlparser-rs#2732, with the WITH options from apache/datafusion-sqlparser-rs#2733), where it used to be a parse error. The statement match in statement.rs has no wildcard arm, so pg2sqlite stopped compiling against it, and CI fails on every branch until this lands.

A membership grant now drops with the same access-control warning as a privilege GRANT, since SQLite has no roles and pg2sqlite keeps no role catalog of its own. Which tables the session user's role can read is decided by sql-traits can_select, and recording memberships there is connetto-rs/sql-traits#164.

@LucaCappelletti94 LucaCappelletti94 added the bug Something isn't working label Oct 28, 2026
@codecov

codecov Bot commented Oct 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@LucaCappelletti94
LucaCappelletti94 merged commit 8c0f87e into main Oct 28, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant