summaryrefslogtreecommitdiff
path: root/lib/_range.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/_range.py')
-rw-r--r--lib/_range.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/_range.py b/lib/_range.py
index e72c878..1747b20 100644
--- a/lib/_range.py
+++ b/lib/_range.py
@@ -352,9 +352,9 @@ class RangeCaster(object):
from psycopg2.extras import _solve_conn_curs
conn, curs = _solve_conn_curs(conn_or_curs)
- if conn.server_version < 90200:
+ if conn.info.server_version < 90200:
raise ProgrammingError("range types not available in version %s"
- % conn.server_version)
+ % conn.info.server_version)
# Store the transaction status of the connection to revert it after use
conn_status = conn.status