mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix(sql-lab): SQL Lab commit connection even if no CTA query is made (#19808)
Co-authored-by: Santiago <s@inkremental.co>
This commit is contained in:
committed by
GitHub
parent
46c2479db2
commit
e13b80aff1
@@ -513,7 +513,8 @@ def execute_sql_statements(
|
||||
)
|
||||
return payload
|
||||
# Commit the connection so CTA queries will create the table.
|
||||
conn.commit()
|
||||
if apply_ctas:
|
||||
conn.commit()
|
||||
|
||||
# Success, updating the query entry in database
|
||||
query.rows = result_set.size
|
||||
|
||||
Reference in New Issue
Block a user