-
Notifications
You must be signed in to change notification settings - Fork 31
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
thread 'main' panicked at 'called Result::unwrap()
on an Err
value: FromBytesWithNulError { kind: InteriorNul(113) }
#86
Comments
This looks like a failed attempt to read a diagnostic message from driver - either it reports wrong message length or this is a bug in odbc-rs There was a recent fix related to diagnostic messages - not sure if it’s related to this problem, but you could try to run the same code with earlier odbc-rs version 0.9.7 and see what happens. |
I have the same trace when using |
There's accentuated characters in that diagnostic message. I'll post more detail. |
self.message_length: 226 I added a '^' to show where the message length ends. The encoding is latin1 or utf-16 (To be honest I don't really know the difference). See playground demo. EDIT: the message means "access denied". Which is fixed by using the right password. I also have a problem with the hex ascii (I replaced > 126 to '?') |
I'm trying to connect to some weird database. It's called HFSQL. I'm able to connect to it with its 32 bit ODBC driver and MS Excel (32 bit). With Rust I'm trying with the 64 bit driver (I didn't test the driver with a 64 bit Excel yet).
I used the "WX230PACKODBC042u.exe" driver on the french https://www.pcsoft.fr/st/telec/modules-communs-23/wx23_42u.htm page.
odbc-rs bdc9294
nightly-x86_64-pc-windows-msvc (default)
rustc 1.29.0-nightly (1ecf6929d 2018-07-16)
The text was updated successfully, but these errors were encountered: