Skip to content

Commit

Permalink
Dont exit for autocommit
Browse files Browse the repository at this point in the history
  • Loading branch information
achamely committed Dec 22, 2014
1 parent b28f430 commit 4c45438
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sqltools.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def dbExecute(statement, values=None):
print 'Error', e, 'Rollback returned: ', dbRollback()
sys.exit(1)

def dbCommitExecute(ouser, opass, statement, values=None):
def dbUpgradeExecute(ouser, opass, statement, values=None):
dbInit(ouser,opass)
try:
con.set_session(autocommit=True)
Expand Down
2 changes: 1 addition & 1 deletion upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
with open(upgradeFile) as fp:
for line in fp:
cmd=line.strip('\n')
dbCommitExecute(username,password,cmd)
dbUpgradeExecute(username,password,cmd)
dbCommit()
print "Patches Applied Successfully"

Expand Down

0 comments on commit 4c45438

Please sign in to comment.