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