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 ') ) |
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() |