Skip to content
Discussion options

You must be logged in to vote

The number of parameters to setinputsizes should match the number of bind variable placeholders in the SQL string, i.e. be 1 in your case.

Since the data is already numeric, forcing the type may not help: but check your SQL optimizer plan.

param_list = [(x,) for x in input_list]
cursor.setinputsizes(oracledb.DB_TYPE_NUMBER)
cursor.executemany(sql, param_list)
deleted_rows = cursor.rowcount

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@urosdigital
Comment options

Answer selected by urosdigital
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants