forked from apache/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
SQLExtendedFetch Implementation #61
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
Merged
Merged
Changes from 12 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
763e2a9
SQLBindCol Initial Impl
alinaliBQ e41ef22
Draft SQLBindCol impl + tests
alinaliBQ da0e2c1
Add more tests for sqlbindcol
alinaliBQ 5b529f9
SQL_UNBIND implementation + tests
alinaliBQ 7fb4afc
Remove todo comments
alinaliBQ e44d950
SQLExtendedFetch initial impl
alinaliBQ 9bd2e14
Implement rowCountPtr and rowStatusArray for SQLExtendedFetch
alinaliBQ 2b7d751
Add tests for SQLExtendedFetch
alinaliBQ 3a9a4f4
Add tests for `SQL_ROWSET_SIZE`
alinaliBQ 60a9435
Merge branch 'apache-odbc' into sql-extended-fetch
alinaliBQ dab4665
Address comments from James
alinaliBQ ef95af6
Trigger deploy or CI
alinaliBQ a6ac9a1
Fix CI build errors
alinaliBQ 17c26a1
Merge branch 'apache-odbc' into sql-extended-fetch
alinaliBQ File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -33,6 +33,7 @@ EXPORTS | |
| SQLErrorW | ||
| SQLExecDirectW | ||
| SQLExecute | ||
| SQLExtendedFetch | ||
| SQLFetch | ||
| SQLForeignKeysW | ||
| SQLFreeEnv | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have to update rowCountPtr/rowStatusArray here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea this is the simplest way I found. I don't know if the original
flightsql-odbccode handles rowCountPtr/rowStatusArray from SQLExtendedFetch. The logic in the driver for settingSQL_ATTR_ROWS_FETCHED_PTRandSQL_ATTR_ROW_STATUS_PTRcannot be reused forrowCountPtrandrowStatusArrayrespectively, since the spec says the rowCountPtr/rowStatusArray buffers are only used by SQLExtendedFetch and not bySQLFetchorSQLFetchScroll.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old driver cheated a bit. It temporarily wrote the SQL_ATTR_ROWS_FETCHED_PTR and SQL_ATTR_ROW_STATUS_PTR with the inputs from SQLExtendedFetch then reverted them after the call finished.