fix: Revert "fix: don't strip SQL comments in Explore (#28363)" (#28567)

This commit is contained in:
Michael S. Molina
2024-05-17 15:01:23 -03:00
committed by GitHub
parent a2947d0c23
commit c9aa4a1f84
7 changed files with 11 additions and 14 deletions

View File

@@ -575,9 +575,9 @@ class TestSqlLab(SupersetTestCase):
assert data["status"] == "success"
data = self.run_sql(
"SELECT * FROM birth_names WHERE state = '{{ state }}' -- blabblah {{ extra1 }}\nLIMIT 10",
"SELECT * FROM birth_names WHERE state = '{{ state }}' -- blabblah {{ extra1 }} {{fake.fn()}}\nLIMIT 10",
"3",
template_params=json.dumps({"state": "CA", "extra1": "comment"}),
template_params=json.dumps({"state": "CA"}),
)
assert data["status"] == "success"