Skip to content

Minor fix to executeBatch#211

Merged
staticlibs merged 1 commit intoduckdb:mainfrom
staticlibs:exec_batch_fix
May 6, 2025
Merged

Minor fix to executeBatch#211
staticlibs merged 1 commit intoduckdb:mainfrom
staticlibs:exec_batch_fix

Conversation

@staticlibs
Copy link
Collaborator

Currently the error message reported by executeBatch method is incorrect because this method tries to clear the batch on exit and such clearance is not possible when the statement is already closed after the error. This change adds a check that the statement is open before doing the cleanup.

Testing: existing test is enhanced to check this error message; batch tests are moved to separate file.

Currently the error message reported by `executeBatch` method is
incorrect because this method tries to clear the batch on exit and such
clearance is not possible when the statement is already closed after
the error. This change adds a check that the statement is open before
doing the cleanup.

Testing: existing test is enhanced to check this error message; batch
tests are moved to separate file.
@staticlibs staticlibs merged commit 21033ef into duckdb:main May 6, 2025
8 checks passed
@staticlibs staticlibs deleted the exec_batch_fix branch May 6, 2025 21:59
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