Changeset 663


Ignore:
Timestamp:
Dec 10, 2015, 7:40:11 AM (4 years ago)
Author:
cito
Message:

Fix nasty typo in update() method

This bug prevented the method from using the returning clause.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.x/module/pg.py

    r653 r663  
    872872        values = ', '.join(values)
    873873        selectable = self.has_table_privilege(qcl)
    874         if selectable and self.server_version >= 880200:
     874        if selectable and self.server_version >= 80200:
    875875            ret = ' RETURNING %s*' % ('oid' in attnames and 'oid, ' or '')
    876876        else:
  • trunk/module/pg.py

    r662 r663  
    885885        values = ', '.join(values)
    886886        selectable = self.has_table_privilege(qcl)
    887         if selectable and self.server_version >= 880200:
     887        if selectable and self.server_version >= 80200:
    888888            ret = ' RETURNING %s*' % ('oid, ' if 'oid' in attnames else '')
    889889        else:
Note: See TracChangeset for help on using the changeset viewer.