mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-25 20:14:21 +01:00
small fix and remove dbg
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user