/[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.6 by apronotti, Mon May 19 20:46:56 2003 UTC revision 1.12.2.7 by apronotti, Tue May 27 22:27:04 2003 UTC
# Line 422  class PGSQL_TriggerExtensions: Line 422  class PGSQL_TriggerExtensions:
422                      string.join(where,' AND ') )                      string.join(where,' AND ') )
423    
424      try:      try:
425          GDebug.printMesg(5, "_atomicModify: statement=%s" % getValueStmt)      
426        cursor.execute(getValueStmt)        cursor.execute(getValueStmt)
427        rv = cursor.fetchone()        rv = cursor.fetchone()
428      except:      except:
# Line 460  class PGSQL_TriggerExtensions: Line 461  class PGSQL_TriggerExtensions:
461                    string.join(where,' AND ') )                    string.join(where,' AND ') )
462    
463      try:      try:
464          GDebug.printMesg(5, "_atomicModify: statement=%s" % updateStmt)
465        cursor.execute(updateStmt)        cursor.execute(updateStmt)
466        if autoCommit:        if autoCommit:
467           self.__connection.commit()           self.__connection.commit()
# Line 519  class PGSQL_TriggerExtensions: Line 521  class PGSQL_TriggerExtensions:
521                      string.join(where,' AND ') )                      string.join(where,' AND ') )
522    
523      try:      try:
524          GDebug.printMesg(5, "_atomicModify: statement=%s" % getValueStmt)      
525        cursor.execute(getValueStmt)        cursor.execute(getValueStmt)
526        rv = cursor.fetchone()        rv = cursor.fetchone()
527      except:      except:
# Line 571  class PGSQL_TriggerExtensions: Line 574  class PGSQL_TriggerExtensions:
574        
575    
576      try:      try:
577          GDebug.printMesg(5, "_atomicModifyForEntry: statement=%s" % updateStmt)
578        cursor.execute(updateStmt)        cursor.execute(updateStmt)
579        if record._haveHistory(table):        if record._haveHistory(table):
580             GDebug.printMesg(5, "_atomicModifyForEntry: statement=%s" % insertStmt)
581           cursor.execute(insertStmt)           cursor.execute(insertStmt)
582        #cursor.close()        #cursor.close()
583      except:      except:

Legend:
Removed from v.1.12.2.6  
changed lines
  Added in v.1.12.2.7

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