diff options
author | Marko Kreen | 2009-11-03 12:27:40 +0000 |
---|---|---|
committer | Marko Kreen | 2009-11-03 12:43:44 +0000 |
commit | 9716946231fd10246ad73955ec930ea0cffa45f4 (patch) | |
tree | e680d611f4c629d7ff37aea0779cd326a46cdd5c /python/skytools/psycopgwrapper.py | |
parent | c9de6870b604e6aa99c42ef1ba12bc4b06c64a31 (diff) |
psycopgwrapper: make server_version int
Diffstat (limited to 'python/skytools/psycopgwrapper.py')
-rw-r--r-- | python/skytools/psycopgwrapper.py | 2 |
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 |