Version number should be tuple for postgresl has_returning
This commit is contained in:
1 parent
52197bdf8f
commit
66717ae533
1 file changed
+2
-2
@@ -96,8 +96,8 @@ class Database(DatabaseInterface):
|
||||
if self.database_name not in self._version_cache:
|
||||
cursor.execute('SELECT version()')
|
||||
version, = cursor.fetchone()
|
||||
self._version_cache[self.database_name] = map(int,
|
||||
RE_VERSION.search(version).groups())
|
||||
self._version_cache[self.database_name] = tuple(map(int,
|
||||
RE_VERSION.search(version).groups()))
|
||||
return self._version_cache[self.database_name]
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in new issue
Block a user