File tree 2 files changed +6
-1
lines changed
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ for Rust libraries in [RFC #1105](https://github.com/rust-lang/rfcs/blob/master/
7
7
## [ Unreleased]
8
8
9
9
* Added type ` diesel_async::pooled_connection::mobc::PooledConnection `
10
+ * MySQL/MariaDB now use ` CLIENT_FOUND_ROWS ` capability to allow consistent behavior with PostgreSQL regarding return value of UPDATe commands.
10
11
11
12
## [ 0.4.1] - 2023-09-01
12
13
@@ -68,3 +69,6 @@ in the pool should be checked if they are still valid
68
69
[ 0.3.0 ] : https://github.com/weiznich/diesel_async/compare/v0.2.0...v0.3.0
69
70
[ 0.3.1 ] : https://github.com/weiznich/diesel_async/compare/v0.3.0...v0.3.1
70
71
[ 0.3.2 ] : https://github.com/weiznich/diesel_async/compare/v0.3.1...v0.3.2
72
+ [ 0.4.0 ] : https://github.com/weiznich/diesel_async/compare/v0.3.2...v0.4.0
73
+ [ 0.4.1 ] : https://github.com/weiznich/diesel_async/compare/v0.4.0...v0.4.1
74
+ [ Unreleased ] : https://github.com/weiznich/diesel_async/compare/v0.4.1...main
Original file line number Diff line number Diff line change @@ -57,7 +57,8 @@ impl AsyncConnection for AsyncMysqlConnection {
57
57
. map_err ( |e| diesel:: result:: ConnectionError :: InvalidConnectionUrl ( e. to_string ( ) ) ) ?;
58
58
let builder = OptsBuilder :: from_opts ( opts)
59
59
. init ( CONNECTION_SETUP_QUERIES . to_vec ( ) )
60
- . stmt_cache_size ( 0 ) ; // We have our own cache
60
+ . stmt_cache_size ( 0 ) // We have our own cache
61
+ . client_found_rows ( true ) ; // This allows a consistent behavior between MariaDB/MySQL and PostgreSQL (and is already set in `diesel`)
61
62
62
63
let conn = mysql_async:: Conn :: new ( builder) . await . map_err ( ErrorHelper ) ?;
63
64
You can’t perform that action at this time.
0 commit comments