fix
This commit is contained in:
@ -103,7 +103,7 @@ def call(procName):
|
|||||||
cur = dbh.cursor(dictionary=True)
|
cur = dbh.cursor(dictionary=True)
|
||||||
cur.execute("CALL {}(null)".format(procName))
|
cur.execute("CALL {}(null)".format(procName))
|
||||||
dbh.commit()
|
dbh.commit()
|
||||||
return "{} successfully called {}".format(procName), 202
|
return "{} successfully called".format(procName), 202
|
||||||
except mariadb.Error as err:
|
except mariadb.Error as err:
|
||||||
dbh.rollback()
|
dbh.rollback()
|
||||||
print("Database error in call {}: {}".format(procName, err))
|
print("Database error in call {}: {}".format(procName, err))
|
||||||
|
Reference in New Issue
Block a user