ソースを参照

adjust execute functoin in sql Handler

tsteuer 4 年 前
コミット
e64f49fd73
共有1 個のファイルを変更した2 個の追加2 個の削除を含む
  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))