chore: improve DML check (#30417)

This commit is contained in:
Beto Dealmeida
2024-09-27 15:26:36 -04:00
committed by GitHub
parent 96b0bcfd78
commit cc9fd88c0d
6 changed files with 43 additions and 12 deletions

View File

@@ -362,7 +362,7 @@ class SQLStatement(BaseSQLStatement[exp.Expression]):
"""
return {
eq.this.sql(): eq.expression.sql()
eq.this.sql(comments=False): eq.expression.sql(comments=False)
for set_item in self._parsed.find_all(exp.SetItem)
for eq in set_item.find_all(exp.EQ)
}