small fix and remove dbg

This commit is contained in:
pedrocarlo
2025-05-29 15:31:38 -03:00
parent fa0dff9843
commit f90bebbfbc
2 changed files with 4 additions and 6 deletions

View File

@@ -16,7 +16,10 @@ impl ToSqlString for ast::CreateTrigger {
self.for_each_row.then_some(" FOR EACH ROW").unwrap_or(""),
self.when_clause
.as_ref()
.map_or("".to_string(), |expr| format!(" WHEN {}", expr.to_string())),
.map_or("".to_string(), |expr| format!(
" WHEN {}",
expr.to_sql_string(context)
)),
self.commands
.iter()
.map(|command| format!("{};", command.to_sql_string(context)))