Skip to content

Conversation

@alinaliBQ
Copy link
Contributor

@alinaliBQ alinaliBQ commented Oct 27, 2025

Rationale for this change

Add ODBC driver connection support for the driver, so the driver can connect to servers.

What changes are included in this PR?

Implementation of unicode APIs:

  • SQLDriverConnect
  • SQLDisconnect
  • SQLConnect
  • DSN Window
  • Test refactoring

Are these changes tested?

Tested locally on Windows.
Note that this PR depends on #47763 to get tests passing.

Are there any user-facing changes?

N/A

@github-actions
Copy link

⚠️ GitHub issue #46574 has been automatically assigned in GitHub to PR creator.

@github-actions github-actions bot added awaiting committer review Awaiting committer review and removed awaiting review Awaiting review labels Oct 27, 2025
alinaliBQ and others added 2 commits October 27, 2025 16:58
* SQLDriverConnect requires SQLGetInfo to be implemented for tests to pass, because driver manager requires SQLGetInfo

Co-Authored-By: alinalibq <[email protected]>
@alinaliBQ alinaliBQ force-pushed the gh-46574-driver-connectivity branch from 5746a62 to 7d61b61 Compare October 27, 2025 23:58
Co-authored-by: justing-bq <[email protected]>
@alinaliBQ alinaliBQ force-pushed the gh-46574-driver-connectivity branch from f28ed1f to 8ad5b6a Compare October 28, 2025 22:29
@alinaliBQ
Copy link
Contributor Author

@lidavidm @kou Changes in this PR are ready for review, please let me know if you have any comments. Thank you! This PR is in draft because it depends on #47763 to get 2 of its tests passing.

alinaliBQ referenced this pull request in Bit-Quill/arrow Oct 29, 2025
* use suggestion from James for one-liner change to return `Status::OK` directly

* fix for iterating endpoints, it is based on JDBC's fix for the same bug

* save value of `FlightClientOptions`

* Use `TestFlightServer`

Add `arrow_flight_sql_shared` to enable usages for `TestFlightServer`

* Fix build errors from missing `gmock`

* Add checks for array data

Update flight_sql_stream_chunk_buffer_test.cc

Add `FlightStreamChunkBufferTest` unit test

Draft test with `FlightSQLODBCMockEndpointTestBase`

* Reference apacheGH-47117 and Clean up code

* Add driver and DSN to built-in properties to not pass driver/dsn as attributes to server

* Allow `=` in values inside connection strings, fixes connectivity problems

* Address comments from Rob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant