summaryrefslogtreecommitdiff
path: root/lib/extras.py
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2012-09-23 21:11:06 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2012-09-23 21:11:06 +0100
commit94c6353d552208b1c7638f393a3ed28e1eb1b968 (patch)
tree5c7d4e2e2d71142e730582e22d54ab840956eb5d /lib/extras.py
parent45cbcc0713ae8396aed3cf88851b5eaa18551974 (diff)
downloadpsycopg2-94c6353d552208b1c7638f393a3ed28e1eb1b968.tar.gz
NumberRange renamed to NumericRange
I was avoiding Numeric to avoid conflicting with the 'numeric' Postgres type, which is an alias for 'decimal'. But now that there is a single numeric range I can use the preferred name
Diffstat (limited to 'lib/extras.py')
-rw-r--r--lib/extras.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extras.py b/lib/extras.py
index 689e47b..349aba9 100644
--- a/lib/extras.py
+++ b/lib/extras.py
@@ -968,7 +968,7 @@ def register_composite(name, conn_or_curs, globally=False):
# Expose range-related objects
-from psycopg2._range import Range, NumberRange
+from psycopg2._range import Range, NumericRange
from psycopg2._range import DateRange, DateTimeRange, DateTimeTZRange
from psycopg2._range import register_range, RangeAdapter, RangeCaster