This project is archived and is in readonly mode.
[PATCH] Add negative infinity support for Python->pg conversion
Reported by Marti Raudsepp | February 10th, 2011 @ 05:19 PM
Currently Pyscopg does not properly convert Python float negative infinity to PostgreSQL:
>>> c.mogrify('SELECT %s', [float('-inf')])
"SELECT 'Infinity'::float"
This patch fixes the issue and converts it into '-Infinity'. I really hope this makes it into the next release.
Comments and changes to this ticket
-
Daniele Varrazzo February 12th, 2011 @ 08:14 PM
- State changed from new to resolved
Thanks Marti: patch merged on my github branch, it will make for Py 2.4 :)
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.