summaryrefslogtreecommitdiff
path: root/pcr/openchange/openchange-provision-type-error.patch
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-07-21 03:58:19 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-07-21 03:58:19 -0500
commitcb1c71bb973f65548f8713bbb353c6bcb5a848e1 (patch)
tree8f7aa0993ed5369fa8908864e5746d17dd0a269a /pcr/openchange/openchange-provision-type-error.patch
parent334fe2d692a344db1a44e665af270dfdda1f92ac (diff)
openchange-2.3-2: updating version
Diffstat (limited to 'pcr/openchange/openchange-provision-type-error.patch')
-rw-r--r--pcr/openchange/openchange-provision-type-error.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/pcr/openchange/openchange-provision-type-error.patch b/pcr/openchange/openchange-provision-type-error.patch
new file mode 100644
index 000000000..a7a2f7bad
--- /dev/null
+++ b/pcr/openchange/openchange-provision-type-error.patch
@@ -0,0 +1,33 @@
+diff -Naurp openchange-openchange-2.3-VULCAN-org/python/openchange/mailbox.py openchange-openchange-2.3-VULCAN/python/openchange/mailbox.py
+--- openchange-openchange-2.3-VULCAN-org/python/openchange/mailbox.py 2015-05-16 10:22:04.000000000 -0500
++++ openchange-openchange-2.3-VULCAN/python/openchange/mailbox.py 2015-07-17 18:48:13.929579900 -0500
+@@ -498,7 +498,7 @@ class OpenChangeDBWithMysqlBackend(Mysql
+ def change_number(self):
+ if self._change_number is None:
+ cur = self._execute("SELECT change_number FROM servers WHERE id = %s",
+- self.server_id)
++ (self.server_id,))
+ data = cur.fetchone()
+ if data:
+ self._change_number = data[0]
+diff -Naurp openchange-openchange-2.3-VULCAN-org/python/openchange/migration/__init__.py openchange-openchange-2.3-VULCAN/python/openchange/migration/__init__.py
+--- openchange-openchange-2.3-VULCAN-org/python/openchange/migration/__init__.py 2015-05-16 10:22:04.000000000 -0500
++++ openchange-openchange-2.3-VULCAN/python/openchange/migration/__init__.py 2015-07-17 18:49:02.877532654 -0500
+@@ -65,7 +65,7 @@ class MigrationManager(object):
+ """Create the table_name table if not exists
+ """
+ cur = self.db.cursor()
+- cur.execute("""SHOW TABLES LIKE %s""", self.table_name)
++ cur.execute("""SHOW TABLES LIKE %s""", (self.table_name,))
+ row = cur.fetchone()
+ if row is None or row[0] is None:
+ cur.execute("""CREATE TABLE IF NOT EXISTS `{0}` (
+@@ -87,7 +87,7 @@ class MigrationManager(object):
+ if self._version[app] is None:
+ cur = self.db.cursor()
+ cur.execute('SELECT MAX(version) FROM {0} WHERE app = %s'.format(self.table_name),
+- app)
++ (app,))
+ row = cur.fetchone()
+ if row and row[0]:
+ self._version[app] = int(row[0])