Changeset 728 for branches/4.x


Ignore:
Timestamp:
Jan 12, 2016, 4:21:46 PM (4 years ago)
Author:
cito
Message:

Minor doc fixes

Location:
branches/4.x
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.x/docs/contents/pg/db_wrapper.rst

    r724 r728  
    6464    :returns: Name of the field which is the primary key of the table
    6565    :rtype: str
     66    :rtype: str
     67    :raises KeyError: the table does not have a primary key
    6668
    6769This method returns the primary key of a table. For composite primary
    68 keys, the return value will be a frozenset. Note that this raises an
    69 exception if the table does not have a primary key.
     70keys, the return value will be a frozenset. Note that this raises a
     71KeyError if the table does not have a primary key.
    7072
    7173get_databases -- get list of databases in the system
  • branches/4.x/pg.py

    r727 r728  
    555555
    556556        Composite primary keys are represented as frozensets. Note that
    557         this raises an exception if the table does not have a primary key.
     557        this raises a KeyError if the table does not have a primary key.
    558558
    559559        If newpkey is set and is not a dictionary then set that
     
    744744        qcl = self._add_schema(cl)
    745745        # To allow users to work with multiple tables,
    746         # we munge the name of the "oid" the key
     746        # we munge the name of the "oid" key
    747747        qoid = _oid_key(qcl)
    748748        if not keyname:
Note: See TracChangeset for help on using the changeset viewer.