-
Notifications
You must be signed in to change notification settings - Fork 3k
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
odbc
does not play nice with sqlite
's binary
blobs.
#6050
Comments
Could this be related to #3321? |
The odbc application has not been actively developed for a very long time, and hence is not a high priority for Ericsson. So a PR is more than welcome to address any issues. |
I hope I am not opening a can of worms with this question but would it make sense in this case to move the application out of Erlang/OTP? Perhaps some external team would then pick it up and develop it? Or is the application in a "it just works for our intended use cases" scenario and that's why it has not been developed? |
Yes it is worth considering. |
@josevalim I think we actually have considered it a candidate for that on several occasions, but as it has not caused a lot of work in the past it has tagged along and other changes were prioritized. I think that it is still used for the use case it was developed for (which was not ours, but this is not a story to tell here) and I guess many others use more specialized SQL-server apps as ODBC does not make the backend as transparent as you might have hoped. But if there is someone interested in taking it on please let us know. |
Describe the bug
odbc
does not play nice withbinary
blobs.To Reproduce
Create a table in
sqlite
:Store a moderately sized blob in it: anything greater than 400 bytes (I suspect 255 is the threshold).
Try to retrieve it with
odbc
. The first 255 bytes come ok, the rest is just random garbage.Curiously, inserting big blobs (≈ 900 megabytes) works ok.
Expected behavior
I expected that inserting a big blob and retrieving it would restore the same byte sequence.
Affected versions
Erlang/OTP 24 [erts-12.3.1]
Additional context
I played with other data types and by using text or varchar I can get that 400 limit to increase, but I'm never able to get past the 10 megabytes mark with any current data types.
The text was updated successfully, but these errors were encountered: