Commits

Denis Bilenko  committed f1eb2a8

examples/psycopg2_pool.py: make execute() return 'rowcount'

  • Participants
  • Parent commits b79e8ac

Comments (0)

Files changed (1)

File examples/psycopg2_pool.py

     def execute(self, *args, **kwargs):
         with self.cursor() as cursor:
             cursor.execute(*args, **kwargs)
+            return cursor.rowcount
 
     def fetchone(self, *args, **kwargs):
         with self.cursor() as cursor: