Version number should be tuple for postgresl has_returning

This commit is contained in:
Nicolas Évrard committed 2011-10-05 18:29:30 +02:00
1 parent 52197bdf8f
commit 66717ae533
1 file changed
+2 -2
+2 -2
View File
@@ -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