Skip to content

fix: use Executor::fetch in QueryAs::fetch#3886

Merged
abonander merged 1 commit into
transact-rs:mainfrom
bobozaur:fix_query_as_fetch
Jul 5, 2025
Merged

fix: use Executor::fetch in QueryAs::fetch#3886
abonander merged 1 commit into
transact-rs:mainfrom
bobozaur:fix_query_as_fetch

Conversation

@bobozaur
Copy link
Copy Markdown
Contributor

@bobozaur bobozaur commented Jun 6, 2025

Does your PR solve an issue?

Not that I could find. Though it addresses a FIXME comment in the code.

Is this a breaking change?

It is a breaking change, though this seems like it was an oversight which has been lingering along the codebase. The QueryAs::fetch method was probably never intended to allow multi-statement queries. Doing this now since 0.9.0 seems to be the next SQLx version.

@bobozaur bobozaur force-pushed the fix_query_as_fetch branch from c73c29a to 76274cc Compare June 6, 2025 07:22
@bobozaur bobozaur force-pushed the fix_query_as_fetch branch from 76274cc to 4b32c8f Compare June 6, 2025 07:23
@abonander abonander merged commit a9fb581 into transact-rs:main Jul 5, 2025
84 checks passed
@bobozaur bobozaur deleted the fix_query_as_fetch branch July 5, 2025 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants