Skip to content

Conversation

@SoMuchForSubtlety
Copy link
Contributor

Fixes #2430

@SoMuchForSubtlety
Copy link
Contributor Author

Generating the prepared statement should probably also be skipped, but this fixes the core issue.

@Jille
Copy link
Contributor

Jille commented Jul 13, 2023

Heh, I ran into the same issue and wrote the exact same PR :D

@andrewmbenton
Copy link
Collaborator

This reveals the issue referenced in #2452 but I suppose it's best to work on that in a separate PR.

@andrewmbenton andrewmbenton added this to the v1.20.0 milestone Jul 26, 2023
@andrewmbenton andrewmbenton merged commit 3a67691 into sqlc-dev:main Jul 26, 2023
alfonsodev pushed a commit to ExponentiaTeam/sqlc that referenced this pull request Oct 13, 2025
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.

sqlc.slice() generates broken code when emit_prepared_queries is enabled

3 participants