Skip to content

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

Merged
dimitri-yatsenko merged 1 commit into
maint/2.3from
fix/mysql-error-1143-2.3
Oct 21, 2026
Merged

dimitri-yatsenko merged 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

@MilagrosMarin MilagrosMarin left a comment

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.

Thanks @dimitri-yatsenko — clean backport.

✅ The cherry-picked commit has the same patch-id as #1587's (82f90c44), and it keeps @Bhanu73120 as author.
✅ #1587 is on master, so the merge-order note is satisfied.
✅ It merges cleanly onto current maint/2.3 after #1593, and CI is green.

Approving — looks good to me.

@dimitri-yatsenko
dimitri-yatsenko merged commit 4399088 into maint/2.3 Oct 21, 2026
9 checks passed
@dimitri-yatsenko
dimitri-yatsenko deleted the fix/mysql-error-1143-2.3 branch October 21, 2026 15:27
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.

3 participants