Open deonav opened 2 days ago
@deonav thanks for the suggestions.
I have pushed a patch that adds the requested support and have initated a build from which you can download pre-built development wheels once it completes. You can also build from source if you prefer.
If
setinputsizes
is not called, then one can reuse the cursor for different SQL statements without problems like soIf it is called, however, then an exception may be raised. Consider
There doesn't appear to be any way to undo this, for example
If we could detect if
setinputsizes
were called, and if the empty callsetinputsizes()
would have it forget, then we could safely reuse cursors in procedural programming, such asAlternatively, the cursor could detect if a different sql statement (string id) were used and then forget on its own.