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
Fixed another potential breaking chaneg around queries containing DISTINCT ON and ORDER BY clauses consisting of custom sql expressions (e.g. .nullable())
Fixed an issue where #[derive(Selectable)] and #[diesel(check_for_backend)] generates invalid rust code if the struct contains lifetimes/generic types
[2.1.1] 2023-08-25
Fixed
Fixed an issue in diesel-cli that lead to using unquoted table names in one of the internal queries
Fixed a bug in diesel print-schema that lead to generating invalid table! macros if both the #[sql_name] and the #[max_lenght] attribute are present
Fixed an issue in diesel-cli that lead to ignoring certain foreign key constraints for postgresql
Fixed an crash while using diesel print-schema with really old sqlite versions
Fixed an issue where #[diesel(check_for_backend)] ignored #[diesel(deserialize_as)] attributes
Fixed several issues with the new #[derive(MultiConnection)] feature
Fixed some edge cases in our sqlite timestamp parsing behaviour
diesel migration generate --diff-schema now respects table filters as setup for print-schema via diesel.toml
Fixed a potential breaking change around queries containing DISTINCT ON and ORDER BY clauses consisting of custom sql expressions (e.g. diesel::dsl::sql)
Added
Support for bigdecimal 0.4
[2.1.0] 2023-05-26
Changed
The minimal officially supported rustc version is now 1.65.0
Added
Added the custom_type_derives config option to customize the derives for SQL
type definitions automatically generated by Diesel CLI.
Add a #[derive(MultiConnection)] proc-macro that lets you easily implement diesel::Connection
for an enum of connections to different database backends.
Added a --diff-schema flag to the diesel migration generate command that generates a migration based
on the difference between your database and the provided schema.rs file
Add a ON CONFLICT (...) DO UPDATE ... [WHERE ...] conditional clause support for PostgreSQL.
Add support for MySQL's ON DUPLICATE KEY DO UPDATE syntax through the existing upsert functions.
Add ability to define multiple columns in a single distinct_on for PostgreSQL,
like: .distinct_on((column_a, column_b)).
Added column size restrictions to the generated schema.rs file
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps diesel from 1.4.8 to 2.1.3.
Release notes
Sourced from diesel's releases.
Changelog
Sourced from diesel's changelog.
... (truncated)
Commits
a4b5a8b
Add date to the changelog6811931
Prepare a 2.1.3 release to fix another breaking change inDISTINCT ON
/`ORDE...935cfbc
Merge pull request #3811 from omid/patch-1b6850a0
Add date to the changelog268d753
Merge pull request #3803 from weiznich/backports_for_2.1.29f04d8a
Fix some clippy and deprecation warningse0716e2
Prepare a 2.1.2 release4f985d7
Merge pull request #3794 from weiznich/fix/37908246b23
Merge pull request #3793 from weiznich/fix/37669b5ed0a
Merge pull request #3795 from weiznich/fix/ci_mysql_windowsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show