Skip to content

Disable DSN default values on macOS#158

Merged
alinaliBQ merged 2 commits intoapache-odbcfrom
disable-default-values
Feb 25, 2026
Merged

Disable DSN default values on macOS#158
alinaliBQ merged 2 commits intoapache-odbcfrom
disable-default-values

Conversation

@alinaliBQ
Copy link

Disable DSN default values on maOS. This is because iodbc driver manager on macOS treats default values as real values when reading from system DSN, and the driver manager ignores the actual values.

Raised issue apache#49387 in Arrow community to enable the default values.

Set(FlightSqlConnection::TRUSTED_CERTS,
ReadDsnString(dsn, FlightSqlConnection::TRUSTED_CERTS));

#ifndef __APPLE__

Choose a reason for hiding this comment

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

I think it makes more sense to do the #ifdef APPLE first and let windows and linux be covered by #else rather than the other way around. It is more consistent with the rest of the code.

Copy link
Author

Choose a reason for hiding this comment

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

Yup good point, I have addressed your comment

@alinaliBQ alinaliBQ requested a review from justing-bq February 25, 2026 18:13
@alinaliBQ alinaliBQ changed the title Disable DSN default values on maOS Disable DSN default values on macOS Feb 25, 2026
@alinaliBQ alinaliBQ merged commit 0a3cd02 into apache-odbc Feb 25, 2026
30 of 32 checks passed
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.

2 participants