This project is archived and is in readonly mode.
Integer range upper bound coerced to exclusive
Reported by Psycopg website | July 11th, 2014 @ 02:19 AM
Submitted by: Brian Findlay
'[1,10]' coerced to '[1,11)'
See tests at https://gist.github.com/bfin/a6e0cce630f38d85c090
Comments and changes to this ticket
-
Daniele Varrazzo July 11th, 2014 @ 09:45 AM
- State changed from new to invalid
You are observing PostgreSQL's behaviours, not psycopg.
piro=> select '[1,10]'::int4range; int4range ----------- [1,11) (1 row)
Check the docs about the canonicalization of builtin discrete ranges.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
<b>WARNING:</b> the informations in this tracker are archived. Please submit new tickets or comments to <a href="https://github.com/psycopg/psycopg2/issues">the new tracker</a>.
<br/>
Psycopg is the most used PostgreSQL adapter for the Python programming language. At the core it fully implements the Python DB API 2.0 specifications. Several extensions allow access to many of the features offered by PostgreSQL.