-
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
Exception: Prelude.chr: bad argument: 5046345 #28
Comments
I got the same. Tested with |
I got the same using the included stack.yaml and the hdbc-odbc repo as of 00edd61 by following the example in the Readme to test hdbc-odbc using sqlite3.
System info:
|
@TikhonJelvis and @dmvianna I fixed this by ensuring I had λ> connectODBC
connectODBC :: String -> IO Connection
λ> conn <- connectODBC "testsqlite3"
*** Exception: SqlError {seState = "[\"*** Exception: Prelude.chr: bad argument: 5046345
λ> conn <- connectODBC "DSN=testsqlite3"
λ> hdbcDriverName conn
"odbc" |
Same with #25 ? |
@igrep It didn't work for me:
The error I got could be from other things though. |
I'm consistently getting the following exception when running code talking to Hive through ODBC both from a binary and from GHCi:
On a different system, we got the same exception with a different number:
This is on GHC 8.0.1 on OS X with the latest version of HDBC and HDBC-odbc. The problem comes up at some initial part of the connection process because I get the exception even if I don't have the ODBC drivers installed or a DSN entry—it's not even trying to connect.
Here's the smallest example that causes the error. (It doesn't work with a correctly configured database either.):
Here's a stack trace:
The text was updated successfully, but these errors were encountered: