We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ef43d2 commit db5a3dbCopy full SHA for db5a3db
src/mysql/mod.rs
@@ -57,7 +57,8 @@ impl AsyncConnection for AsyncMysqlConnection {
57
.map_err(|e| diesel::result::ConnectionError::InvalidConnectionUrl(e.to_string()))?;
58
let builder = OptsBuilder::from_opts(opts)
59
.init(CONNECTION_SETUP_QUERIES.to_vec())
60
- .stmt_cache_size(0); // We have our own cache
+ .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`)
62
63
let conn = mysql_async::Conn::new(builder).await.map_err(ErrorHelper)?;
64
0 commit comments