mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix(sqllab): Do not strip comments when executing SQL statements (#29248)
This commit is contained in:
@@ -573,9 +573,9 @@ class TestSqlLab(SupersetTestCase):
|
||||
assert data["status"] == "success"
|
||||
|
||||
data = self.run_sql(
|
||||
"SELECT * FROM birth_names WHERE state = '{{ state }}' -- blabblah {{ extra1 }} {{fake.fn()}}\nLIMIT 10",
|
||||
"SELECT * FROM birth_names WHERE state = '{{ state }}' -- blabblah {{ extra1 }}\nLIMIT 10",
|
||||
"3",
|
||||
template_params=json.dumps({"state": "CA"}),
|
||||
template_params=json.dumps({"state": "CA", "extra1": "comment"}),
|
||||
)
|
||||
assert data["status"] == "success"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user