summaryrefslogtreecommitdiff
path: root/lib/_json.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/_json.py')
-rw-r--r--lib/_json.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/_json.py b/lib/_json.py
index 71c2b76..0438c25 100644
--- a/lib/_json.py
+++ b/lib/_json.py
@@ -185,7 +185,7 @@ def _get_json_oids(conn_or_curs, name='json'):
conn_status = conn.status
# column typarray not available before PG 8.3
- typarray = conn.server_version >= 80300 and "typarray" or "NULL"
+ typarray = conn.info.server_version >= 80300 and "typarray" or "NULL"
# get the oid for the hstore
curs.execute(