Releases: diesel-rs/diesel
Diesel 2.2.10
Fixed
- Support for libsqlite3-sys 0.33.0
- Fixed potential ambiguities in code generated by various derives
You can support the development of diesel by contributions or by sponsoring the project on Github
Full Changelog: v2.2.9...v2.2.10
Diesel 2.2.9
Fixed
- Fix an issue where
diesel migration generate --diff-schema
incorrectly uses the primary key of table B as the referenced column rather than the primary key of table A when B has a foreign key pointing to table A. - Bump maximal supported libsqlite3-sys version to 0.32.0 and add explicit feature entries for the
uuid
andserde_json
feature. - Fixed an issue where diesel generated unnamed prepared statements would fail with an
unanmed prepared statement not found
error with pgbouncer. - Fix an issue with converting
ipnet::Ipnet
values with an subnet to SQL values
You can support the development of diesel by contributions or by sponsoring the project on Github
Full Changelog: v2.2.8...v2.2.9
Diesel 2.2.8
Fixed
- Allow
#[diesel(check_for_backend(_))]
to check fields with#[diesel(embed)]
annotations - Improve custom compile error message around
CompatibleType
- Fix a bug that restricted the number of allowed columns in
COPY FROM
statements to 12 - Expose some SqliteValue helper functions
- Use consistent whitespace in
ASC
/DESC
,DISTINCT ON
, andDELETE FROM
clauses
You can support the development of diesel by contributions or by sponsoring the project on Github
Full Changelog: v2.2.7...v2.2.8
Diesel 2.2.7
Fixed
- Fixed diesel thinking
a.eq_any(b)
was non-nullable even ifa
andb
were nullable. - Generate
InstrumentationEvent::BeginTransaction
for immediate and exclusive transactions in SQLite - Minimize the amount of duplicated code generated for
diesel::debug_query
- Updated
ipnetwork
to allow version 0.21. - Updated
libsqlite3-sys
to allow version 0.31.0 - Updated
pq-sys
to allow version 0.7.0 - Add support for numeric operators (+-*/) in
#[diesel::auto_type]
- Add support for joins to sub-jons to aliases
You can support the development of diesel by contributions or by sponsoring the project on Github
Full Changelog: v2.2.6...v2.2.7
Diesel 2.2.6
What's Changed
- Remove more mentions of gitter from the documentation
Full Changelog: v2.2.5...v2.2.6
Diesel 2.2.5
- Add a typedef for
Returning
andCount
so that#[auto_type]
works with such queries - Fixed an issue that allowed to pass non-boolean expressions to
.and()
and.or()
which would
result in queries failing at runtime - Officially deprecating the gitter room
You can support the development of diesel by contributions or by sponsoring the project on Github.
Full Changelog: v2.2.4...v2.2.5
Diesel 2.2.4
Fixed
- Fix an issue where empty queries could trigger undefined behaviour in the sqlite backend
Diesel 2.2.3
- Support for libsqlite3-sys 0.30.0
- Fixed a possible vulnerability in how Diesel handled protocol level bind parameters.
See the SQL Injection isn't Dead: Smuggling Queries at Protocol Level presentation from DEF CON for details - Fixed an issue with a possibly ambiguous trait resolution in
#[derive(QueryableByName)]
You can support the development of diesel by contributions or by sponsoring the project on Github.
Full Changelog: v2.2.2...v2.2.3
Diesel 2.2.2
- Support for libsqlite3-sys 0.29.0
- Fixed a potential panic in the sqlite cursor implementation
- Fixed support for rust numeric operators with columns of the type
Numeric
- Removed the
SerializedDatabase::new
function due to unsoundness
You can support the development of diesel by contributions or by sponsoring the project on Github.
Full Changelog: v2.2.1...v2.2.2
Diesel 2.2.1
You can support the development of diesel by contributions or by sponsoring the project on Github.
- Fixed using
#[dsl::auto_type]
with functions that accept reference arguments - Fixed using
#[derive(Queryable)]
with structs that use a type namedRow
as field type - Fixed a regression that prevented using
mysqlclient-sys
0.2.x with diesel 2.2 - Fixed connecting to postgres database using the scram-sha-256 authentication method on windows while using the bundled postgres builds
- Improved the error messages in diesel-cli for cases where a file/folder was not found
- Fixed several version detection bugs in mysqlclient-sys to use pre-generated bindings in more situations
Full Changelog: v2.2.0...v2.2.1