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
Unable to call set_result_subtype at the appropriate time #1157
Comments
I've hacked around this over at https://github.com/mullr/rusqlite/tree/set_result_hack by adding a FunctionFlag value to ignore the return value of the user provided function. I also exposed As the branch name suggests, this not that nice. But maybe it's ok? The surrounding types don't leave much room for maneuvering without some pretty major surgery, afaict. |
What about: pub trait SubType : ToSql {
fn sub_type(&self) -> Option<c_uint> {
None
}
} ? |
That seems like a great API. It would either require that the |
Version 0.31.0 released |
I see that you have added a binding for
sqlite3_result_subtype
, which is great, that's exactly the thing I need! However, this needs be called /after/sqlite3_result_*
in order to take effect, which isn't currently possible.Do you have something in mind for how to do it? I'd be happy to implement it if it's reasonably straightforward.
The text was updated successfully, but these errors were encountered: