|
@@ -216,7 +216,7 @@ class SQLHandler:
|
|
|
if len(sub_query) > 0:
|
|
|
try:
|
|
|
result = connection.execute(sub_query)
|
|
|
- if result.rowcount > 0 and not re.search('drop|delete', sub_query, re.IGNORECASE):
|
|
|
+ if result.returns_rows:
|
|
|
data = pd.DataFrame(result.fetchall())
|
|
|
data.columns = result.keys()
|
|
|
results.append(data)
|