This commit is contained in:
pedrocarlo
2025-06-03 12:58:59 -03:00
parent 5f379fe2d6
commit ebee9516ba
8 changed files with 29 additions and 70 deletions

View File

@@ -8,17 +8,12 @@ impl ToSqlString for ast::Update {
"{} ",
with.to_sql_string(context)
)),
self.or_conflict.map_or("".to_string(), |conflict| format!(
"OR {} ",
conflict.to_string()
)),
self.or_conflict
.map_or("".to_string(), |conflict| format!("OR {} ", conflict)),
self.tbl_name.to_sql_string(context),
self.indexed
.as_ref()
.map_or("".to_string(), |indexed| format!(
" {}",
indexed.to_string()
)),
.map_or("".to_string(), |indexed| format!(" {}", indexed)),
self.sets
.iter()
.map(|set| set.to_sql_string(context))