Skip to content

fix(mysql): translate column access error 1143 (2.3) - #1599

Open
dimitri-yatsenko wants to merge 1 commit into
maint/2.3from
fix/mysql-error-1143-2.3
Open

dimitri-yatsenko wants to merge 1 commit into
maint/2.3from
fix/mysql-error-1143-2.3

Conversation

@dimitri-yatsenko

Copy link
Copy Markdown
Member

Backport of #1587 to maint/2.3 for v2.3.5. The commit is cherry-picked unchanged and keeps its author.

MySQL error 1143 (SELECT denied on a column) now raises dj.errors.AccessError, the same as 1044 and 1142. Before, it came through as a raw pymysql.err.OperationalError, so code that catches AccessError missed column-level grants. PostgreSQL already maps both denials to AccessError.

Merge after #1587 lands on master.

Fixes #1586.

@dimitri-yatsenko dimitri-yatsenko added this to the v2.3.5 milestone Oct 17, 2026
@dimitri-yatsenko dimitri-yatsenko added the bug Indicates an unexpected problem or unintended behavior label Oct 17, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Indicates an unexpected problem or unintended behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants