Changeset 994 for trunk


Ignore:
Timestamp:
Apr 25, 2019, 7:41:30 AM (3 months ago)
Author:
cito
Message:

Fix typo and whitespace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/contents/changelog.rst

    r993 r994  
    66- Changes in the classic PyGreSQL module (pg):
    77    - Support for prepared statements (following a suggestion and first
    8       implementation by Justin Pryzvy on the mailing list).
     8      implementation by Justin Pryzby on the mailing list).
    99    - DB wrapper objects based on existing connections can now be closed and
    1010      reopened properly (but the underlying connection will not be affected).
     
    6565--------------------------
    6666- It is now possible to use a custom array cast function by changing
    67   the type caster for the 'anyarray' type.  For instance, by calling
     67  the type caster for the 'anyarray' type. For instance, by calling
    6868  set_typecast('anyarray', lambda v, c: v) you can have arrays returned
    69   as strings instead of lists.  Note that in the pg module, you can also
     69  as strings instead of lists. Note that in the pg module, you can also
    7070  call set_array(False) in order to return arrays as strings.
    7171- The namedtuple classes used for the rows of query results are now cached
    7272  and reused internally, since creating namedtuples classes in Python is a
    73   somewhat expensive operation.  By default the cache has a size of 1024
     73  somewhat expensive operation. By default the cache has a size of 1024
    7474  entries, but this can be changed with the set_row_factory_size() function.
    7575  In certain cases this change can notably improve the performance.
     
    120120      to Python as a list. PostgreSQL records are converted to named tuples as
    121121      well, but only if you use one of the get/insert/update/delete() methods.
    122       PyGreSQL uses a new fast built-in parser to achieve this.  The automatic
     122      PyGreSQL uses a new fast built-in parser to achieve this. The automatic
    123123      conversion of arrays to lists can be disabled with set_array(False).
    124124    - The pkey() method of the classic interface now returns tuples instead
    125125      of frozenset. The order of the tuples is like in the primary key index.
    126126    - Like the DB-API 2 module, the classic module now also returns bool values
    127       from the database as Python bool objects instead of strings.  You can
     127      from the database as Python bool objects instead of strings. You can
    128128      still restore the old behavior by calling set_bool(False).
    129129    - Like the DB-API 2 module, the classic module now also returns bytea
    130130      data fetched from the database as byte strings, so you don't need to
    131       call unescape_bytea() any more.  This has been made configurable though,
     131      call unescape_bytea() any more. This has been made configurable though,
    132132      and you can restore the old behavior by calling set_bytea_escaped(True).
    133133    - A method set_jsondecode() has been added for changing or removing the
     
    157157      wrapper method use_regtypes().
    158158    - A new method query_formatted() has been added to the DB wrapper class
    159       that allows using the format specifications from Python.  A flag "inline"
     159      that allows using the format specifications from Python. A flag "inline"
    160160      can be set to specify whether parameters should be sent to the database
    161161      separately or formatted into the SQL.
     
    206206      constraints are violated, it raises an IntegrityError now.
    207207    - The modules now provide get_typecast() and set_typecast() methods
    208       allowing to control the typecasting on the global level.  The connection
     208      allowing to control the typecasting on the global level. The connection
    209209      objects have got type caches with the same methods which give control
    210210      over the typecasting on the level of the current connection.
     
    213213    - Dates, times, timestamps and time intervals are now returned as the
    214214      corresponding Python objects from the datetime module of the standard
    215       library.  In earlier versions of PyGreSQL they had been returned as
    216       strings.  You can restore the old behavior by deactivating the respective
     215      library. In earlier versions of PyGreSQL they had been returned as
     216      strings. You can restore the old behavior by deactivating the respective
    217217      typecast functions, e.g. set_typecast('date', str).
    218218    - PyGreSQL now support the "uuid" data type, converting such columns
    219219      automatically to and from Python uuid.UUID objects.
    220220    - PyGreSQL now supports the "hstore" data type, converting such columns
    221       automatically to and from Python dictionaries.  If you want to insert
     221      automatically to and from Python dictionaries. If you want to insert
    222222      Python objects as JSON data using DB-API 2, you should wrap them in the
    223223      new HStore() type constructor as a hint to PyGreSQL.
     
    227227      new Json() type constructor as a hint to PyGreSQL.
    228228    - A new type helper Literal() for inserting parameters literally as SQL
    229       has been added.  This is useful for table names, for instance.
     229      has been added. This is useful for table names, for instance.
    230230    - Fast parsers cast_array(), cast_record() and cast_hstore for the input
    231231      and output syntax for PostgreSQL arrays, composite types and the hstore
     
    270270Version 4.1.1 (2013-01-08)
    271271--------------------------
    272 - Add NotificationHandler class and method.  Replaces need for pgnotify.
     272- Add NotificationHandler class and method. Replaces need for pgnotify.
    273273- Sharpen test for inserting current_timestamp.
    274 - Add more quote tests.  False and 0 should evaluate to NULL.
     274- Add more quote tests. False and 0 should evaluate to NULL.
    275275- More tests - Any number other than 0 is True.
    276276- Do not use positional parameters internally.
     
    297297  (as suggested by Adam Frederick).
    298298- Binary objects are now automatically escaped and unescaped.
    299 - Bug in money quoting fixed.  Amounts of $0.00 handled correctly.
     299- Bug in money quoting fixed. Amounts of $0.00 handled correctly.
    300300- Proper handling of date and time objects as input.
    301301- Proper handling of floats with 'nan' or 'inf' values as input.
     
    454454Version 3.3 (2001-12-03)
    455455------------------------
    456 A few cleanups.  Mostly there was some confusion about the latest version
     456A few cleanups. Mostly there was some confusion about the latest version
    457457and so I am bumping the number to keep it straight.
    458458
     
    464464Note that there are very few changes to PyGreSQL between 3.1 and 3.2.
    465465The main reason for the release is the move into the PostgreSQL
    466 development tree.  Even the WIN32 changes are pretty minor.
     466development tree. Even the WIN32 changes are pretty minor.
    467467
    468468- Add Win32 support (gerhard@bigfoot.de)
     
    472472Version 3.1 (2000-11-06)
    473473------------------------
    474 - Fix some quoting functions.  In particular handle NULLs better.
     474- Fix some quoting functions. In particular handle NULLs better.
    475475- Use a method to add primary key information rather than direct
    476476  manipulation of the class structures
     
    513513------------------------
    514514- Insert returns None if the user doesn't have select permissions
    515   on the table.  It can (and does) happen that one has insert but
     515  on the table. It can (and does) happen that one has insert but
    516516  not select permissions on a table.
    517517- Added ntuples() method to query object (brit@druid.net)
     
    546546- Add new `pg` wrapper (C module renamed to _pg)
    547547- Wrapped database connection in a class
    548 - Cleaned up some of the tutorial.  (More work needed.)
     548- Cleaned up some of the tutorial. (More work needed.)
    549549- Added `version` and `__version__`.
    550550  Thanks to thilo@eevolute.com for the suggestion.
     
    556556- Added dictresult method
    557557
    558 Version 2.0  (1997-12-23)
    559 -------------------------
     558Version 2.0 (1997-12-23)
     559------------------------
    560560- Updated code for PostgreSQL 6.2.1 and Python 1.5
    561561- Reformatted code and converted to use full ANSI style prototypes
Note: See TracChangeset for help on using the changeset viewer.