Skip to content

Fix reflection of primary keys #18369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 22, 2025
Merged

Fix reflection of primary keys #18369

merged 2 commits into from
Apr 22, 2025

Conversation

markstory
Copy link
Member

When a primary key exists on a string column type without a default, sqlite will return that primary key in index_info(). When we get that primary key, we don't need to scan the columns.

This improves efficency and fixes regressions that would occur in migrations.

When a primary key exists on a string column type without a default,
sqlite will return that primary key in index_info(). When we get that
primary key, we don't need to scan the columns.

This improves efficency and fixes regressions that would occur in
migrations.
@markstory markstory added this to the 5.2.3 milestone Apr 22, 2025
@dereuromark dereuromark merged commit 733ab25 into 5.x Apr 22, 2025
13 checks passed
@dereuromark dereuromark deleted the fix-sqlite-primary branch April 22, 2025 19:17
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