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

Add OLE DB support #13

Closed
wants to merge 14 commits into from

Conversation

trevorbonas
Copy link
Collaborator

@trevorbonas trevorbonas commented Jul 2, 2024

Summary

Add OLE DB support

Description

OLE DB Support Changes

  • Documentation for how the driver can be used with OLE DB, using PowerShell and Excel, has been added in its own file, docs/markdown/setup/ole-db.md.
  • A bounds check has been added for the cursor, preventing the cursor from advancing past the end of the result set.
  • src/out has been added to .gitignore.
  • Null is now returned for null values instead of the character "-".
  • Empty arrays are represented as [] instead of [-].
  • byteOffset changed to size_t.
  • columnBindOffset changed to SqlUlen*.
  • SQLExtendedFetch implemented separately from SQLFetchScroll to support ODBC 2.x applications.
  • rowsetSize added to Statement, for use with SQLExtendedFetch.
  • SQL_ROWSET_SIZE is now handled in Statement::InternalSetAttribute and Statement::InternalGetAttribute.
  • An ignoreErrors argument has been added to InternalClose so that SQLFreeStmt can ignore all errors when freeing.
  • Restriction for array size being less than 1000 has been removed.
  • Spelling errors have been fixed in comments and in the documentation.
  • SQLGetData can now retrieve variable-length data in parts.
  • Wth SQLGetData, the indicator pointer now receives the entire size of the cell if all data was placed in the buffer and gets the remaining data if only part of the data was placed in the buffer, when the buffer is too small to fit all data.
  • macOS GitHub action runner updated to macos-12, as macos-11 has been deprecated and is no longer available.

Related Issue

Closes #10
Closes #11
Closes #12

Additional Reviewers

N/A

trevorbonas and others added 14 commits July 2, 2024 14:34
### Summary
<!--- General summary / title -->

Add OLE DB support

### Description
<!--- Details of what you changed -->

- Documentation for how the driver can be used with OLE DB, using PowerShell and Excel, has been added in its own file, `docs/markdown/setup/ole-db.md`.
- Null is now returned for null values instead of the character "`-`".
- Empty arrays are represented as `[]` instead of `[-]`.
- `byteOffset` changed to `size_t`.
- `columnBindOffset` changed to `SqlUlen*`.
- `SQLExtendedFetch` implemented separately from `SQLFetchScroll` to support ODBC 2.x applications.
- `rowsetSize` added to `Statement`, for use with `SQLExtendedFetch`.
- `SQL_ROWSET_SIZE` is now handled in `Statement::InternalSetAttribute` and `Statement::InternalGetAttribute`.
- An `ignoreErrors` argument has been added to `InternalClose` so that `SQLFreeStmt` can ignore all errors when freeing.
- Restriction for array size being less than 1000 has been removed.
- Spelling errors have been fixed in comments and in the documentation.
- `SQLGetData` can now retrieve variable-length data in parts.
- Wth `SQLGetData`, the indicator pointer now receives the entire size of the cell if all data was placed in the buffer and gets the remaining data if only part of the data was placed in the buffer, when the buffer is too small to fit all data.

### Related Issue
<!--- Link to issue where this is tracked -->

N/A

### Additional Reviewers
<!-- Any additional reviewers -->

N/A
@trevorbonas trevorbonas closed this Jul 8, 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.

NULL values are returned as the character "-" Lack of OLE DB support Cursor can advance pass the end
1 participant