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

Obscure error message "SQLDriverConnect = ?????????? (101) SQLSTATE=??1" for unicode psqlodbc #104

Open
Jamedjo opened this issue Jul 11, 2024 · 1 comment

Comments

@Jamedjo
Copy link

Jamedjo commented Jul 11, 2024

Using psqlodbcw.so from brew install psqlodbc produces the following error in iODBC, while working fine in unixodbc:

/Library/Application\ Support/iODBC/bin/iodbctest "DSN=db_with_unicode_driver"

Driver Manager: 03.52.1623.0502
1: SQLDriverConnect = ??????????????????????????????????????????򠁹?????????????????????????????????? (101) SQLSTATE=??1
1: ODBC_Connect = ??????????????????????????????????????????򠁹?????????????????????????????????? (101) SQLSTATE=??1

Connection is successful with the ascii driver psqlodbca.so but returns incorrect characters.

Connection also works with either driver with unixodbc via isql -v db_with_unicode_driver.

I'm on an M1 mac and the driver is Mach-O 64-bit bundle arm64.

The obscure error message in a 3rd party app made this hard to diagnose, so if this is an error that needs to be fixed in the driver it would still be super useful to improve the error message here.

@Jamedjo
Copy link
Author

Jamedjo commented Jul 11, 2024

Looks like I was missing DriverUnicodeType=1, which wasn't needed for unixodbc.

Happy to close this, or can leave open for improving the error message when that is missing?

@Jamedjo Jamedjo changed the title Unicode version of psqlodbc fails on M1 Mac with SQLDriverConnect = ?????????? (101) SQLSTATE=??1 Obscure error message "SQLDriverConnect = ?????????? (101) SQLSTATE=??1" for unicode psqlodbc Jul 11, 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

No branches or pull requests

1 participant