diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2012-09-25 00:02:24 +0100 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2012-09-25 00:07:08 +0100 |
| commit | b8b669611ec42f5d93dd4669ba30b6c0cb8b0663 (patch) | |
| tree | c3134109d47843d7c9842edb23fb692ba90416f1 /lib | |
| parent | f70e6a151937f4a2f0bf706f20acd0d6049aa60c (diff) | |
| download | psycopg2-b8b669611ec42f5d93dd4669ba30b6c0cb8b0663.tar.gz | |
More helpful error messasge on Range order attempts
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/_range.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/_range.py b/lib/_range.py index 549efeb..0f99c27 100644 --- a/lib/_range.py +++ b/lib/_range.py @@ -132,7 +132,9 @@ class Range(object): return hash((self._lower, self._upper, self._bounds)) def __lt__(self, other): - raise TypeError('Range objects are not ordered') + raise TypeError( + 'Range objects cannot be ordered; please refer to the PostgreSQL' + ' documentation to perform this operation in the database') __le__ = __gt__ = __ge__ = __lt__ |
