Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: diesel-rs/diesel
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.1.2
Choose a base ref
...
head repository: diesel-rs/diesel
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.1.3
Choose a head ref
  • 3 commits
  • 4 files changed
  • 1 contributor

Commits on Sep 29, 2023

  1. Merge pull request #3811 from omid/patch-1

    Increase the `.order_by` limit to 5 again
    weiznich committed Sep 29, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    renovate-bot Mend Renovate
    Copy the full SHA
    935cfbc View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    6811931 View commit details

Commits on Oct 5, 2023

  1. Add date to the changelog

    weiznich committed Oct 5, 2023
    Copy the full SHA
    a4b5a8b View commit details
Showing with 37 additions and 32 deletions.
  1. +5 −0 CHANGELOG.md
  2. +1 −1 diesel/Cargo.toml
  3. +1 −1 diesel/src/pg/query_builder/distinct_on.rs
  4. +30 −30 diesel_compile_tests/tests/fail/distinct_on_requires_matching_order_clause.stderr
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -10,6 +10,10 @@ Increasing the minimal supported Rust version will always be coupled at least wi

## Unreleased

## [2.1.3] 2023-10-05

* Increased accidently decreased limit around element count in `DISTINCT ON` and `ORDER BY` clauses again as that broke existing code

## [2.1.2] 2023-09-25

## Fixed
@@ -2053,3 +2057,4 @@ queries or set `PIPES_AS_CONCAT` manually.
[2.1.0]: https://github.com/diesel-rs/diesel/compare/v2.0.0...v2.1.0
[2.1.1]: https://github.com/diesel-rs/diesel/compare/v2.1.0...v2.1.1
[2.1.2]: https://github.com/diesel-rs/diesel/compare/v2.1.1...v2.1.2
[2.1.3]: https://github.com/diesel-rs/diesel/compare/v2.1.2...v2.1.3
2 changes: 1 addition & 1 deletion diesel/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "diesel"
version = "2.1.2"
version = "2.1.3"
license = "MIT OR Apache-2.0"
description = "A safe, extensible ORM and Query Builder for PostgreSQL, SQLite, and MySQL"
readme = "README.md"
2 changes: 1 addition & 1 deletion diesel/src/pg/query_builder/distinct_on.rs
Original file line number Diff line number Diff line change
@@ -240,7 +240,7 @@ macro_rules! valid_ordering {
// If we would generate these impls up to max_table_column_count tuple elements that
// would be a really large number for 128 tuple elements (~64k trait impls)
// It's fine to increase this number at some point in the future gradually
diesel_derives::__diesel_for_each_tuple!(valid_ordering, 3);
diesel_derives::__diesel_for_each_tuple!(valid_ordering, 5);

/// A decorator trait for `OrderClause`
/// It helps to have bounds on either Col, Asc<Col> and Desc<Col>.
Loading