From f6c1a04df403e832cc591c9afba8a59c79d00cd5 Mon Sep 17 00:00:00 2001 From: gau1991 Date: Tue, 24 Mar 2015 12:29:01 +0530 Subject: [PATCH] Return for mysql execute statement --- ee/core/mysql.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ee/core/mysql.py b/ee/core/mysql.py index 7c523bf1..df9112d7 100644 --- a/ee/core/mysql.py +++ b/ee/core/mysql.py @@ -49,9 +49,10 @@ class EEMysql(): Log.debug(self, "Executing MySQL statement: {0}" .format(statement)) - cur.execute(statement) + result = cur.execute(statement) cur.close() conn.close() + return result except Exception as e: cur.close()