]> git.phdru.name Git - xsetbg.git/commitdiff
Fix VACUUM command
authorOleg Broytman <phd@phdru.name>
Mon, 24 Oct 2016 11:33:53 +0000 (14:33 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 24 Oct 2016 11:33:53 +0000 (14:33 +0300)
SQLite doesn't vacuum a single table but the entire database.

xsetbg_db.py

index 53e0e3cae7773a2716dacc2ea4c270f57c4f6f0a..35840cc842ba4c85a98ab32fbfdb7af1d5971816 100755 (executable)
@@ -49,7 +49,7 @@ class SQLiteMassInsert(object):
     def __exit__(self, *args, **kw):
         sqlhub.processConnection.commit()
         connection = sqlhub.processConnection = self.connection
-        connection.query("VACUUM %s" % xsetbg_db.sqlmeta.table)
+        connection.query("VACUUM")
 
 
 db_dirs = []