LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Python Twisted adbapi number of affected rows (https://www.linuxquestions.org/questions/programming-9/python-twisted-adbapi-number-of-affected-rows-942516/)

tadeas 04-30-2012 05:41 AM

Python Twisted adbapi number of affected rows
 
I write a Twisted application that does a lot of SQL - I use MySQL to be specific. Since I write 'raw' SQL (no ORM), it's great to use adbapi.

I need to get information about how many rows were affected by UPDATE. However runOperaion returns None and runQuery returns () (i.e. empty tuple).

How do I get this in adbapi?

Thanks in advance!


All times are GMT -5. The time now is 10:42 PM.