Skip to content

Commit

Permalink
Upstream output spacing (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 authored Jan 30, 2024
1 parent 82d0528 commit dae4987
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backend/query_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ pub trait QueryBuilder:
if let Some(table) = &insert.table {
write!(sql, " INTO ").unwrap();
self.prepare_table_ref(table, sql);
write!(sql, " ").unwrap();
}

self.prepare_output(&insert.returning, sql);

write!(sql, " ").unwrap();

if insert.default_values.is_some() && insert.columns.is_empty() && insert.source.is_none() {
let num_rows = insert.default_values.unwrap();
self.insert_default_values(num_rows, sql);
Expand Down

0 comments on commit dae4987

Please sign in to comment.