You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cdb2api supports binding parameters by index. Could that be ported to the cdb2 library?
Could be implemented as handle.execute(query, [ParameterValue]) and/or handle.execute(query, {int: ParameterValue}) where each parameter is mapped with 1-based indexing, and query uses ? as parameters
Note that you cannot bind an array by index
Examples: handle.execute("select ?", [10]) handle.execute("select ?", {1: 10})
Both of these would output 10
cdb2api supports binding parameters by index. Could that be ported to the cdb2 library?
Could be implemented as handle.execute(query, [ParameterValue]) and/or handle.execute(query, {int: ParameterValue}) where each parameter is mapped with 1-based indexing, and query uses ? as parameters
Note that you cannot bind an array by index
Examples:
handle.execute("select ?", [10])
handle.execute("select ?", {1: 10})
Both of these would output
10
https://peps.python.org/pep-0249/#id53 supports using a sequence or mapping from index to value
The text was updated successfully, but these errors were encountered: