blob: a7a2f7badf35e8ff6a6d41fdfa431e407ffa883b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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])
|