Skip to content

Raise exception when statement is prepared for a different connection than executed#354

Merged
warmwaffles merged 3 commits into
elixir-sqlite:mainfrom
katafrakt:exception-on-connection-mismatch-in-step
Jul 16, 2026
Merged

Raise exception when statement is prepared for a different connection than executed#354
warmwaffles merged 3 commits into
elixir-sqlite:mainfrom
katafrakt:exception-on-connection-mismatch-in-step

Conversation

@katafrakt

Copy link
Copy Markdown
Contributor

For functions step, multi_step and columns check if the statement was prepared for the same connection as the one on which they are run. If not, raise ArgumentError explaining the mismatch.

Closes #353

Comment thread lib/exqlite/sqlite3.ex Outdated

@warmwaffles warmwaffles left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome. One nit, and that's it.

@katafrakt

Copy link
Copy Markdown
Contributor Author

Great! I see you already made the change.

@warmwaffles
warmwaffles merged commit f1a26dc into elixir-sqlite:main Jul 16, 2026
9 checks passed
@warmwaffles

Copy link
Copy Markdown
Member

Sorry I forgot to merge this @katafrakt 😞

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.

Segmentation fault with Sqlite3.step

2 participants