Skip to content

Commit 045e6ac

Browse files
pksunkarasgoll
authored andcommitted
Merge pull request #4116 from Ten0/distinct_on_space
Add space in "DISTINCT ON (...) "
1 parent b322ce6 commit 045e6ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diesel/src/pg/query_builder/distinct_on.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ where
271271
fn walk_ast<'b>(&'b self, mut out: AstPass<'_, 'b, Pg>) -> QueryResult<()> {
272272
out.push_sql("DISTINCT ON (");
273273
self.0.walk_ast(out.reborrow())?;
274-
out.push_sql(")");
274+
out.push_sql(") ");
275275
Ok(())
276276
}
277277
}

0 commit comments

Comments
 (0)