We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 405b38e commit cc62a92Copy full SHA for cc62a92
store/postgres/src/relational_queries.rs
@@ -1410,9 +1410,15 @@ impl<'a> ParentLimit<'a> {
1410
/// Include a 'limit {num_parents}+1' clause for single-object queries
1411
/// if that is needed
1412
fn single_limit(&self, num_parents: usize, out: &mut AstPass<Pg>) {
1413
- if let ParentLimit::Ranked(_, _) = self {
1414
- out.push_sql(" limit ");
1415
- out.push_sql(&(num_parents + 1).to_string());
+ match self {
+ ParentLimit::Ranked(_, _) => {
+ out.push_sql(" limit ");
1416
+ out.push_sql(&(num_parents + 1).to_string());
1417
+ }
1418
+ ParentLimit::Outer => {
1419
+ // limiting is taken care of in a wrapper around
1420
+ // the query we are currently building
1421
1422
}
1423
1424
0 commit comments