Explorar el Código

adjust execute functoin in sql Handler

tsteuer hace 4 años
padre
commit
e64f49fd73
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      cdplib/db_handlers/SQLHandler.py

+ 2 - 2
cdplib/db_handlers/SQLHandler.py

@@ -216,8 +216,8 @@ class SQLHandler:
         for sub_query in sqlparse.split(query):
             if len(sub_query) > 0:
                 try:
-                    connection.execute(sub_query, multi=True)
-
+                    result = connection.execute(sub_query, multi=True)
+                    return result
                 except Exception as e:
                     errors.append(str(e))