[Greater-commits] r290 - trunk/GREAT-ER-DB/impl/postgresql/test
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Jun 28 12:44:53 CEST 2011
Author: bricks
Date: 2011-06-28 12:44:51 +0200 (Tue, 28 Jun 2011)
New Revision: 290
Modified:
trunk/GREAT-ER-DB/impl/postgresql/test/postgressupport.py
Log:
Be able to check how many rows are affected by last query
Modified: trunk/GREAT-ER-DB/impl/postgresql/test/postgressupport.py
===================================================================
--- trunk/GREAT-ER-DB/impl/postgresql/test/postgressupport.py 2011-06-27 16:14:44 UTC (rev 289)
+++ trunk/GREAT-ER-DB/impl/postgresql/test/postgressupport.py 2011-06-28 10:44:51 UTC (rev 290)
@@ -302,8 +302,10 @@
"\\\\"))
cursor = conn.cursor()
cursor.execute(sql)
+ rows_affected = cursor.rowcount
conn.commit()
conn.close()
+ return rows_affected
def require_authentication(self, required):
"""Switch authentication requirements on or off
More information about the Greater-commits
mailing list