summaryrefslogtreecommitdiff
path: root/python/skytools/psycopgwrapper.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/skytools/psycopgwrapper.py')
-rw-r--r--python/skytools/psycopgwrapper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/skytools/psycopgwrapper.py b/python/skytools/psycopgwrapper.py
index 0cd053a1..aeaa7a74 100644
--- a/python/skytools/psycopgwrapper.py
+++ b/python/skytools/psycopgwrapper.py
@@ -121,7 +121,7 @@ def connect_database(connstr):
db.set_isolation_level(0)
curs = db.cursor()
curs.execute('show server_version_num')
- db.server_version = curs.fetchone()[0]
+ db.server_version = int(curs.fetchone()[0])
db.set_isolation_level(iso)
return db