Browse Source

Return for mysql execute statement

bugfixes
gau1991 10 years ago
parent
commit
f6c1a04df4
  1. 3
      ee/core/mysql.py

3
ee/core/mysql.py

@ -49,9 +49,10 @@ class EEMysql():
Log.debug(self, "Executing MySQL statement: {0}" Log.debug(self, "Executing MySQL statement: {0}"
.format(statement)) .format(statement))
cur.execute(statement) result = cur.execute(statement)
cur.close() cur.close()
conn.close() conn.close()
return result
except Exception as e: except Exception as e:
cur.close() cur.close()

Loading…
Cancel
Save