Skip to content

[Refactor] Remove reference of Configuration in odbc_connection.cc - #105

Merged
alinaliBQ merged 2 commits into
apache-odbcfrom
remove-cross-dependency
Sep 19, 2025
Merged

[Refactor] Remove reference of Configuration in odbc_connection.cc#105
alinaliBQ merged 2 commits into
apache-odbcfrom
remove-cross-dependency

Conversation

@alinaliBQ

Copy link
Copy Markdown

Remove reference of Configuration in odbc_connection.cc which is in library odbcabstraction. The reasoning is that Configuration is in arrow_odbc_spi_impl and this is a library that odbcabstraction depends on. I moved the logic for reading DSN values into odbc_api.cc instead, since that is a place that will result in no conflicts. The ODBC driver now does not save the DSN value in the connection string if the DSN value is put after Driver value.

Comment on lines +689 to +690
bool dsn_first = false;
bool driver_first = false;

@alinaliBQ alinaliBQ Sep 18, 2025

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed variable name to fit arrow convention; but I didn't change variables everywhere though, as updating the variables are for a different ticket

@alinaliBQ
alinaliBQ marked this pull request as ready for review September 19, 2025 18:15
@alinaliBQ alinaliBQ changed the title Remove reference of Configuration in odbc_connection.cc [Refactor] Remove reference of Configuration in odbc_connection.cc Sep 19, 2025
Comment thread cpp/src/arrow/flight/sql/odbc/odbcabstraction/odbc_impl/odbc_connection.cc Outdated
Comment thread cpp/src/arrow/flight/sql/odbc/odbcabstraction/odbc_impl/odbc_connection.cc Outdated
Simply logic to check for first key value pair only

@alinaliBQ alinaliBQ left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed James' comments

Comment thread cpp/src/arrow/flight/sql/odbc/odbcabstraction/odbc_impl/odbc_connection.cc Outdated
Comment thread cpp/src/arrow/flight/sql/odbc/odbcabstraction/odbc_impl/odbc_connection.cc Outdated
@alinaliBQ
alinaliBQ merged commit 0515fa2 into apache-odbc Sep 19, 2025
22 of 24 checks passed
@alinaliBQ
alinaliBQ deleted the remove-cross-dependency branch September 19, 2025 22:17
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.

3 participants