londiste copy: fix broken lock table
authorMarko Kreen <markokr@gmail.com>
Tue, 4 Oct 2011 16:50:22 +0000 (18:50 +0200)
committerMarko Kreen <markokr@gmail.com>
Tue, 4 Oct 2011 16:54:42 +0000 (18:54 +0200)
python/londiste/table_copy.py

index 987e4126214f3d4244bb770acb4b309285c8266e..d7d900c47ba7e9a8c6d739e84107c5b47f118215 100644 (file)
@@ -103,7 +103,7 @@ class CopyTable(Replicator):
         self.drop_fkeys(dst_db, tbl_stat.name)
 
         # now start ddl-dropping tx
-        q = "lock table %" + skytools.quote_fqident(tbl_stat.name)
+        q = "lock table " + skytools.quote_fqident(tbl_stat.name)
         dst_curs.execute(q)
 
         # find dst struct