[Collab-qa-commits] r1513 - udd/udd

Lucas Nussbaum lucas at alioth.debian.org
Mon Jul 13 21:28:03 UTC 2009


Author: lucas
Date: 2009-07-13 21:28:03 +0000 (Mon, 13 Jul 2009)
New Revision: 1513

Modified:
   udd/udd/screenshot_gatherer.py
Log:
use DELETE FROM instead of TRUNCATE. doesnt require locking the table.

Modified: udd/udd/screenshot_gatherer.py
===================================================================
--- udd/udd/screenshot_gatherer.py	2009-07-13 21:25:53 UTC (rev 1512)
+++ udd/udd/screenshot_gatherer.py	2009-07-13 21:28:03 UTC (rev 1513)
@@ -25,7 +25,7 @@
     my_config = self.my_config
 
     cur = self.cursor()
-    query = "TRUNCATE %s" % my_config['table']
+    query = "DELETE FROM %s" % my_config['table']
     cur.execute(query)
     query = """PREPARE screenshots_insert (text, text, text, text, text, text, text, text, text, text) AS
                    INSERT INTO %s




More information about the Collab-qa-commits mailing list