/[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.3 by apronotti, Fri May 9 22:23:09 2003 UTC revision 1.12.2.4 by apronotti, Tue May 13 18:07:58 2003 UTC
# Line 429  class PGSQL_TriggerExtensions: Line 429  class PGSQL_TriggerExtensions:
429        GDebug.printMesg(1,"**** Unable to execute extension query")        GDebug.printMesg(1,"**** Unable to execute extension query")
430        GDebug.printMesg(1,"**** %s" % sys.exc_info()[1])        GDebug.printMesg(1,"**** %s" % sys.exc_info()[1])
431        cursor.close()        cursor.close()
432        raise        raise GDataObjects.ConnectionError(str(err))
433    
434      try:      try:
435        lAux = rv[0]        lAux = rv[0]
# Line 443  class PGSQL_TriggerExtensions: Line 443  class PGSQL_TriggerExtensions:
443            GDebug.printMesg(1,"**** Unable to execute extension query")            GDebug.printMesg(1,"**** Unable to execute extension query")
444            GDebug.printMesg(1,"**** %s" % sys.exc_info()[1])            GDebug.printMesg(1,"**** %s" % sys.exc_info()[1])
445            cursor.close()            cursor.close()
446            raise            raise GDataObjects.ConnectionError(str(err))
447    
448      if field.count('.') > 0:      if field.count('.') > 0:
449        auxField = field.split('.')[1]        auxField = field.split('.')[1]
# Line 469  class PGSQL_TriggerExtensions: Line 469  class PGSQL_TriggerExtensions:
469        GDebug.printMesg(1,"**** Unable to execute extension query")        GDebug.printMesg(1,"**** Unable to execute extension query")
470        GDebug.printMesg(1,"**** %s" % sys.exc_info()[1])        GDebug.printMesg(1,"**** %s" % sys.exc_info()[1])
471        cursor.close()        cursor.close()
472        raise        raise GDataObjects.ConnectionError(str(err))
473    
474      return 1      return 1
475    
# Line 526  class PGSQL_TriggerExtensions: Line 526  class PGSQL_TriggerExtensions:
526        GDebug.printMesg(1,"**** Unable to execute extension query")        GDebug.printMesg(1,"**** Unable to execute extension query")
527        GDebug.printMesg(1,"**** %s" % sys.exc_info()[1])        GDebug.printMesg(1,"**** %s" % sys.exc_info()[1])
528        cursor.close()        cursor.close()
529        raise        raise GDataObjects.ConnectionError(str(err))
530    
531      try:      try:
532        lAux = rv[0]        lAux = rv[0]
# Line 540  class PGSQL_TriggerExtensions: Line 540  class PGSQL_TriggerExtensions:
540            GDebug.printMesg(1,"**** Unable to execute extension query")            GDebug.printMesg(1,"**** Unable to execute extension query")
541            GDebug.printMesg(1,"**** %s" % sys.exc_info()[1])            GDebug.printMesg(1,"**** %s" % sys.exc_info()[1])
542            cursor.close()            cursor.close()
543            raise            raise GDataObjects.ConnectionError(str(err))
544    
545      if field.count('.') > 0:      if field.count('.') > 0:
546        auxField = field.split('.')[1]        auxField = field.split('.')[1]
# Line 572  class PGSQL_TriggerExtensions: Line 572  class PGSQL_TriggerExtensions:
572    
573      try:      try:
574        cursor.execute(updateStmt)        cursor.execute(updateStmt)
575          print updateStmt
576        if record._haveHistory(table):        if record._haveHistory(table):
577           cursor.execute(insertStmt)           cursor.execute(insertStmt)
578             print insertStmt
579        #cursor.close()        #cursor.close()
580      except:      except:
581        print >> sys.stderr, "DBdriver.py", "error! %s" % sys.exc_info()[1]        print >> sys.stderr, "DBdriver.py", "error! %s" % sys.exc_info()[1]
582        GDebug.printMesg(1,"**** Unable to execute extension query")        GDebug.printMesg(1,"**** Unable to execute extension query")
583        GDebug.printMesg(1,"**** %s" % sys.exc_info()[1])        GDebug.printMesg(1,"**** %s" % sys.exc_info()[1])
584        cursor.close()        cursor.close()
585        raise        raise GDataObjects.ConnectionError(str(err))
586    
587      if autoCommit:      if autoCommit:
588        self.__connection.commit()        self.__connection.commit()

Legend:
Removed from v.1.12.2.3  
changed lines
  Added in v.1.12.2.4

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