python-postgres / be

pg-python: Execute Python 3 code from PostgreSQL functions.
Other
5 stars 2 forks source link

Improve intN's comparison intelligence with Python's long #28

Open jwp opened 13 years ago

jwp commented 13 years ago

There will likely be cases where comparisons are performed with "oversized" Python longs.

Currently, it stupidly casts the long to the intN and performs the usual comparison. It ought to just special case Python longs.