-
Notifications
You must be signed in to change notification settings - Fork 34
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
connectODBC chr
bad argument exception
#25
Comments
Thanks for the report! Confirming that I've successfully reproduced an issue an am investigating it currently. |
Oh, that's an issue with wide characters representation. Seems like it's currently broken on Linux (due to the fact that, at least on my Ubuntu, unixodbc assumes 2-byte wchar_t, while GHC assumes 4-byte one). I'll make a proper fix for this on a weekend. |
@anton-dessiatov Should it work on 2.4.0.1? Update: Can confirm it works on |
@Profpatsch Likely so, although that version (and earlier ones) has multithreading issues. |
I've stumbled upon this today, too. What would happen if we use ANSI version of the call instead? I'm still not really familiar with ODBC... Another option would be to use |
FWIW I went ahead and implemented this in abbradar@79ffd1f -- works fine for me as a workaround. |
I'm really interested in this issue too. |
Hello, any idea on when this might be fixed? I run into this issue at random in
It happens once in a while at random, not consistently. So, I was very surprised as well as concerned when I encountered this. Is there any workaround such as telling |
Using abbradar@79ffd1f to connect to an oracle database works for me as well. |
Prelude.chr: bad argument: 3670064 RHEL7.4, ODBC driver 13 for SQL Server abbradar/hdbc-odbc@79ffd1f worked for connection to SQL Server 2016 with ODBC 13.1 connection string that worked: could not connect to non-default instance at the SQL server where default instance is only-Windows authenticated. |
The issue still appears on my system (HDBC-odbc 2.5.0.1, using libmyodbc8w.so as driver). The issue seems to be driver-independent. Now what can I do besides hacking source packages? I mean, this issue is now more than 2 years old. |
I‘ve set up a simple postgres database:
and have the following in
~/.odbc.ini
:I also created a user
user
with passwordfoo
.In GHCI though:
Version: 2.5.0.0
The text was updated successfully, but these errors were encountered: