Author: cito
Date: Thu Dec 10 07:40:11 2015
New Revision: 663

Log:
Fix nasty typo in update() method

This bug prevented the method from using the returning clause.

Modified:
   branches/4.x/module/pg.py
   trunk/module/pg.py

Modified: branches/4.x/module/pg.py
==============================================================================
--- branches/4.x/module/pg.py   Thu Dec 10 06:36:49 2015        (r662)
+++ branches/4.x/module/pg.py   Thu Dec 10 07:40:11 2015        (r663)
@@ -871,7 +871,7 @@
             return d
         values = ', '.join(values)
         selectable = self.has_table_privilege(qcl)
-        if selectable and self.server_version >= 880200:
+        if selectable and self.server_version >= 80200:
             ret = ' RETURNING %s*' % ('oid' in attnames and 'oid, ' or '')
         else:
             ret = ''

Modified: trunk/module/pg.py
==============================================================================
--- trunk/module/pg.py  Thu Dec 10 06:36:49 2015        (r662)
+++ trunk/module/pg.py  Thu Dec 10 07:40:11 2015        (r663)
@@ -884,7 +884,7 @@
             return d
         values = ', '.join(values)
         selectable = self.has_table_privilege(qcl)
-        if selectable and self.server_version >= 880200:
+        if selectable and self.server_version >= 80200:
             ret = ' RETURNING %s*' % ('oid, ' if 'oid' in attnames else '')
         else:
             ret = ''
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql

Reply via email to