diff options
author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2018-10-13 03:28:42 +0100 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2018-10-13 03:28:42 +0100 |
commit | 44bd2927c50c516bde149021ee5560f4b295d5b7 (patch) | |
tree | fe7526f42178c376bed007aec159b55303608969 /lib/_json.py | |
parent | 704e6797e7dd4ac0046caa3230a8faa1f247859f (diff) | |
download | psycopg2-connection-info.tar.gz |
Use the connection.info properties instead of the legacy methodsconnection-info
Diffstat (limited to 'lib/_json.py')
-rw-r--r-- | lib/_json.py | 2 |
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( |