-
Notifications
You must be signed in to change notification settings - Fork 63
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
UTF16String API updates #57
Comments
I think I just ran into this. In [1]:
using ODBC
In [2]:
listdrivers()
Out[2]:
0x2 Array{String,2}
In [3]:
listdsns()
Out[3]:
1x2 Array{String,2}:
"mimic2" "/usr/lib/x86_64-linux-gnu/odbc/libmyodbc.so"
In [4]:
db = ODBC.connect("mimic2")
ODBC Connection Object
Out[4]:
----------------------
Connection Data Source: mimic2
mimic2 Connection Number: 1
Contains resultset? No
In [5]:
sql"SHOW DATABASES;"
ArgumentError("UTF16String data must be NULL-terminated")
while loading In[5], in expression starting on line 1 |
What's your |
This is on julia.mit.edu: In [6]:
versioninfo()
Julia Version 0.3.0-rc2+8
Commit 540dac0 (2014-08-06 16:02 UTC)
Platform Info:
System: Linux (x86_64-linux-gnu)
CPU: Intel(R) Xeon(R) CPU E7- 8850 @ 2.00GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Nehalem)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3 |
Ran into this recently I believe:
|
It looks like |
Yeah, @stevengj, that worked for me. (Although I have other trouble after that, so YMMV.) |
Closed by 7bc2267 |
When JuliaLang/julia#7016 or similar is merged, it looks like your usage of
UTF16String
will break, as we discussed. You will probably want to use theutf16(...)
constructor instead ofUTF16String(...)
, or use the latter only if your data is already NUL terminated.The text was updated successfully, but these errors were encountered: