-
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
Large columns support (SQL_NO_TOTAL) #41
Comments
it seems like this was at least partially fixed in fe6f5ba |
Maybe we can try to repo it with the latest? |
Looks like it's reproduced on large string columns of specific types. Code for handling such a case is still missing, though. @jlgale could you please share additional details on your database vendor and db schema? |
Hi, I'm back from Vacation;-) SQL_NO_TOTAL means that odbc is not able to tell you how much memory you have to allocate to hold the field of the column. Usually this happens for database columns which are intended to hold large amounts of data. You are supposed to call get_data repeatedly on them to process the data chunk-wise. The best fit on the rust side of things could be something implementing the |
@Koka we are using a database called "snowflake" (snowflake.net). It's similar to Amazon's redshift. The value in question comes from a It seems reasonable that the default would be to read in everything but allow for |
With the new release, 0.7.1, we no longer see the the panic but we just get an empty string. An improvement :) |
I'll start working on this |
@jlgale Just looking over old issues, probably not relevant for you any more, but eventually fetching arbitrary large texts has been implemented in |
https://github.com/Koka/odbc-rs/blob/master/src/statement/output.rs#L115
It looks like this function doesn't expect the
SQL_NO_TOTAL
case (-4) and it goes badly.I don't know what SQL_NO_TOTAL means, but I can report that this happened when querying a column with large text values.
The text was updated successfully, but these errors were encountered: