Changeset 328 for trunk/docs


Ignore:
Timestamp:
Sep 16, 2008, 6:29:48 PM (11 years ago)
Author:
cito
Message:

If available, use decimal.Decimal for numeric types.

Location:
trunk/docs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/changelog.txt

    r323 r328  
    55Version 3.8.2 (?)
    66-----------------
    7 - Added new method to get parameter settings
    8 - Added row_factory as suggested by Simon Pamies
    9 - Separated between mandatory and additional type objects
     7- Added new method to get parameter settings.
     8- Added row_factory as suggested by Simon Pamies.
     9- Separated between mandatory and additional type objects.
    1010- Added keyword args to insert, update and delete methods
    11 - Added exception handling for direct copy
     11- Added exception handling for direct copy.
     12- Release the GIL while making a connection
     13  (as suggested by Peter Schuller).
     14- If available, use decimal.Decimal for numeric types.
    1215
    1316Version 3.8.1 (2006-06-05)
  • trunk/docs/pg.txt

    r315 r328  
    367367    "select img from pictures where name='Garfield'").getresult[0][0])
    368368  file('garfield.gif', 'wb').write(picture)
     369
     370set_decimal -- set a decimal type to be used for numeric values
     371---------------------------------------------------------------
     372Syntax::
     373
     374  set_decimal(class)
     375
     376Parameters:
     377  :class: the Python class to be used for PostgreSQL numeric values
     378
     379Description:
     380  This function can be used to specify the Python class that shall be
     381  used by PyGreSQL to hold PostgreSQL numeric values. The default class
     382  is decimal.Decimal if available, otherwise the float type is used.
    369383
    370384Module constants
Note: See TracChangeset for help on using the changeset viewer.