Changeset 443 for trunk/docs


Ignore:
Timestamp:
May 13, 2012, 8:19:46 AM (7 years ago)
Author:
cito
Message:

Support the new payload parameter in getnotify().

Location:
trunk/docs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/changelog.txt

    r438 r443  
    1616- Fixed the set_decimal() function.
    1717- All DatabaseError instances now have a sqlstate attribute.
     18- The getnotify() method can now also return payload strings.
    1819- Open transactions are rolled back when pgdb connections are closed
    1920  (as suggested by Peter Harris).
  • trunk/docs/pg.txt

    r436 r443  
    550550  This methods try to get a notify from the server (from the SQL statement
    551551  NOTIFY). If the server returns no notify, the methods returns None.
    552   Otherwise, it returns a tuple (couple) `(relname, pid)`, where `relname`
    553   is the name of the notify and `pid` the process id of the connection that
    554   triggered the notify. Remember to do a listen query first otherwise
    555   getnotify() will always return `None`.
     552  Otherwise, it returns a tuple (triplet) `(relname, pid, extra)`, where
     553  `relname` is the name of the notify, `pid` is the process id of the
     554  connection that triggered the notify, and `extra` is a payload string
     555  that has been sent with the notification. Remember to do a listen query
     556  first, otherwise getnotify() will always return `None`.
    556557
    557558inserttable - insert a list into a table
Note: See TracChangeset for help on using the changeset viewer.