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

The rowcount seems always equal -1 after executemany(), is it the right result? #633

goodnewday opened this Issue Nov 29, 2017 · 1 comment


None yet
2 participants

goodnewday commented Nov 29, 2017

After commit Discard any result produced by cursor.executemany(),I found that after the executemany() ,the rowcount always equal -1 when the statement contain RETURNING (if not contain ,rowcount seems right), I have readed execute_batch(), execute_values() give wrong rowcount, I know that I shouldn't concern rowcount after execute_batch and execute_values , but what about executemany() ?

Thank you very much!


This comment has been minimized.


dvarrazzo commented Nov 29, 2017

You might be right: even if discarding the result we should probably still read the rowcount. I'll check if it's doable. Thank you for the report.

@dvarrazzo dvarrazzo added this to the psycopg 2.7.4 milestone Nov 29, 2017

dvarrazzo added a commit that referenced this issue Nov 29, 2017

@dvarrazzo dvarrazzo closed this in 65ed547 Nov 29, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment