[Python-modules-commits] [sqlobject] 01/03: Fix #841596 by backporting upstream fix

Neil Muller drnlmza-guest at moszumanska.debian.org
Wed Nov 2 19:29:50 UTC 2016


This is an automated email from the git hooks/post-receive script.

drnlmza-guest pushed a commit to branch master
in repository sqlobject.

commit 1ae9b84e0f20b5384dbfbd082cc00c99a0e86386
Author: Neil Muller <drnlmuller+debian at gmail.com>
Date:   Wed Nov 2 18:32:21 2016 +0200

    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)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/sqlobject.git



More information about the Python-modules-commits mailing list