Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

This project is archived and is in readonly mode.

[PATCH] Add negative infinity support for Python->pg conversion

#40

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.

Reported by Marti Raudsepp · February 10th, 2011 @ 05:19 PM

State: resolved
Milestone: none
Assigned to: nobody

Activity

  1. Daniele Varrazzo
    Daniele Varrazzo
    • State changed from new to resolved

    Thanks Marti: patch merged on my github branch, it will make for Py 2.4 :)

    February 12th, 2011 @ 08:14 PM