Skip to content

Number of updated rows is different than it should be when using DECLARE statement #185

Closed Answered by anthony-tuininga
urosdigital asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure what you think the "right" number of rows ought to be, but the definition according to the documentation is that the value should be 1 for all PL/SQL blocks executed by a call to cursor.execute() -- so likely not what you would like to see. If you want the number of rows updated in your table you will need to use an OUT variable to your PL/SQL block.

Replies: 2 comments 3 replies

Comment options

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

cjbj May 15, 2023
Maintainer

Answer selected by urosdigital
Comment options

You must be logged in to vote
2 replies
@anthony-tuininga
Comment options

@urosdigital
Comment options

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