Returns the number of rows affected from MERGE using cx_oracle

How can you get the number of rows affected from running the "MERGE INTO ..." sql command in CX_Oracle?
When I execute MERGE SQL on cx_oracle, I get cursor.rowcount from -1. Is there a way to get the number of rows affected by the merge?

+3
source share
1 answer

Since cx_oracle follows the python DBAPI specification (I suppose), this is expected to "behave". The exact same issue was discussed by fooobar.com/questions/280938 / ... before.

A few links with possible solutions:

+1

Source: https://habr.com/ru/post/1717284/


All Articles