Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(csharp/src/Client): improved support for AffectedRows #1449

Closed
wants to merge 19 commits into from

Conversation

davidhcoe
Copy link
Contributor

@davidhcoe davidhcoe commented Jan 9, 2024

Adds support for multi-statements. If a caller wishes to use ExecuteReader and have RecordsAffected set for a DELETE command, they should use the new QueryDefinition functionality. This gives callers, who will be working with a specific driver, control over how certain keywords (CREATE, UPDATE, SELECT, DELETE, etc) should be handled, in addition to being able to define their own. If a QueryDefinition is not set, the default QueryResult behavior is used. Additionally, callers can override the parsing of multiple statements using the CustomParser property of the QueryConfiguration if they wish to override how multiple statements are parsed.

Tests included - Yes

Resolves #1448

@github-actions github-actions bot added this to the ADBC Libraries 0.10.0 milestone Jan 9, 2024
@davidhcoe davidhcoe marked this pull request as draft January 11, 2024 16:55
@davidhcoe davidhcoe marked this pull request as ready for review January 16, 2024 00:37
@davidhcoe
Copy link
Contributor Author

Closing this PR after discussion with @CurtHagenlocher . The functionality that is introduced here would be better moved outside of the library because the functionality would be obsolete once ADBC supports multi statements.

@davidhcoe davidhcoe closed this Jan 22, 2024
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.

csharp/src/Client: AdbcDataReader does not correctly report RecordsAffected
1 participant