Skip to content

rename_table leaves a stale attribute on the database#80

Merged
roed314 merged 1 commit into
roed314:masterfrom
roed-math:fix/rename-attr
Jul 20, 2026
Merged

rename_table leaves a stale attribute on the database#80
roed314 merged 1 commit into
roed314:masterfrom
roed-math:fix/rename-attr

Conversation

@roed-math

Copy link
Copy Markdown

rename_table removed the old name from tablenames but not from the database object's __dict__ (which drop_table does clean up), so db.<old_name> kept handing out a table object whose postgres table no longer existed. The old attribute is now dropped.


Split out of #60 (one PR per issue). This branch carries only this issue's fix and its tests; the rest of the known-bug inventory stays xfailed, so the full suite is green here and the strict markers guarantee no cross-issue leakage.

rename_table removed the old name from tablenames but not from the database object's __dict__ (which drop_table does clean up), so db.<old_name> kept handing out a table object whose postgres table no longer existed. The old attribute is now dropped.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@roed314
roed314 merged commit a363143 into roed314:master Jul 20, 2026
16 checks 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