From 1ae9b84e0f20b5384dbfbd082cc00c99a0e86386 Mon Sep 17 00:00:00 2001
From: Neil Muller <drnlmuller+debian@gmail.com>
Date: Wed, 2 Nov 2016 18:32:21 +0200
Subject: Fix #841596 by backporting upstream fix

SQLite 3.15 treats the parameter to VACUUM as a schema name,
not the table name. Dropping the parameter matches the
behaviour on older versions, which simply ignored the parameter.

Patch-Name: fix_sqlite_vacuum_cmd
Applied-Upstream: 3.2.0
---
 sqlobject/sqlite/sqliteconnection.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sqlobject/sqlite/sqliteconnection.py b/sqlobject/sqlite/sqliteconnection.py
index a0c347b..70fae63 100644
--- a/sqlobject/sqlite/sqliteconnection.py
+++ b/sqlobject/sqlite/sqliteconnection.py
@@ -310,7 +310,7 @@ class SQLiteConnection(DBAPI):
         self.query('ALTER TABLE %s ADD COLUMN %s' %
                    (tableName,
                     column.sqliteCreateSQL()))
-        self.query('VACUUM %s' % tableName)
+        self.query('VACUUM')
 
     def delColumn(self, sqlmeta, column):
         self.recreateTableWithoutColumn(sqlmeta, column)
