Skip to content

fix(macros): use oldapi crate paths for SQLite string enums - #70

Merged
lovasoa merged 1 commit into
mainfrom
codex/sqlite-enum-macro-crate-path
Sep 28, 2026
Merged

lovasoa merged 1 commit into
mainfrom
codex/sqlite-enum-macro-crate-path

Conversation

@lovasoa

@lovasoa lovasoa commented Sep 27, 2026

Copy link
Copy Markdown
Collaborator

Deriving sqlx_oldapi::Type for a string enum with the SQLite feature fails unless an extra sqlx alias happens to be in scope: three generated paths still refer to the upstream crate name. This can also break enum derives for other databases when SQLite is enabled alongside them.

Use ::sqlx_oldapi consistently, and add a SQLite string-enum round-trip regression test without a sqlx alias.

Validation: the new test reproduced E0433 before the fix; both SQLite enum tests pass afterward, including prepared and unprepared encode/decode checks. The PostgreSQL derive test target also compiles with all database and type features enabled. Formatting and diff checks passed. All Cargo commands used the committed lockfile.

@lovasoa
lovasoa enabled auto-merge September 27, 2026 23:15
@lovasoa
lovasoa added this pull request to the merge queue Sep 27, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Sep 28, 2026
@lovasoa
lovasoa added this pull request to the merge queue Sep 28, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Sep 28, 2026
@lovasoa
lovasoa added this pull request to the merge queue Sep 28, 2026
Merged via the queue into main with commit 539faed Sep 28, 2026
27 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.

1 participant