mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-03 07:14:33 +01:00
small fix and remove dbg
This commit is contained in:
@@ -52,11 +52,6 @@ pub fn optimize_plan(plan: &mut Plan, schema: &Schema) -> Result<()> {
|
||||
target = "optimized_plan",
|
||||
plan_sql = plan.to_sql_string(&crate::translate::plan::PlanContext(&[]))
|
||||
);
|
||||
dbg!(&plan);
|
||||
println!(
|
||||
"{}",
|
||||
plan.to_sql_string(&crate::translate::plan::PlanContext(&[]))
|
||||
);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
@@ -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