/[papo]/gnue/common/src/dbdrivers/_pgsql/DBdriver.py
ViewVC logotype

Diff of /gnue/common/src/dbdrivers/_pgsql/DBdriver.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.12.2.10 by apronotti, Fri Jun 6 18:30:31 2003 UTC revision 1.12.2.11 by apronotti, Mon Jun 9 18:41:19 2003 UTC
# Line 564  class PGSQL_TriggerExtensions: Line 564  class PGSQL_TriggerExtensions:
564      else:      else:
565         value = func         value = func
566    
567      if record._haveHistory(table):      if record._haveHistory(table) and record.getPostType() == "" or record.getPostType() == "transactional":
568         updateStmt = "UPDATE %s SET _end_t = '%s' WHERE %s" % \         updateStmt = "UPDATE %s SET _end_t = '%s' WHERE %s" % \
569                      (table, dataObject.triggerExtensions.getTimeStamp(), \                      (table, dataObject.triggerExtensions.getTimeStamp(), \
570                       string.join(where,' AND ') )                       string.join(where,' AND ') )
# Line 585  class PGSQL_TriggerExtensions: Line 585  class PGSQL_TriggerExtensions:
585      try:      try:
586        GDebug.printMesg(5, "_atomicModifyForEntry: statement=%s" % updateStmt)        GDebug.printMesg(5, "_atomicModifyForEntry: statement=%s" % updateStmt)
587        cursor.execute(updateStmt)        cursor.execute(updateStmt)
588        if record._haveHistory(table):        if record._haveHistory(table) and record.getPostType() == "" or record.getPostType() == "transactional":
589           GDebug.printMesg(5, "_atomicModifyForEntry: statement=%s" % insertStmt)           GDebug.printMesg(5, "_atomicModifyForEntry: statement=%s" % insertStmt)
590           cursor.execute(insertStmt)           cursor.execute(insertStmt)
591        #cursor.close()        #cursor.close()

Legend:
Removed from v.1.12.2.10  
changed lines
  Added in v.1.12.2.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26