Enable `CLIENT_FOUND_ROWS` in `r2dbc-mysql` in favor of `spring-data-r2dbc`
See original GitHub issueAfter https://github.com/spring-projects/spring-data-r2dbc/issues/253, spring-data-r2dbc
assumes CLIENT_FOUND_ROWS
capability flag is enabled for its mysql connections.
This causes a problem with jasync-r2dbc-mysql
as a backing driver for spring-data-r2dbc
when we try to save an unchanged entity…:
val fooRepository: R2dbcRepository<FooEntity, Int>
// throws an exception since `affectedRows` evaluates to 0 in MySQL without `CLIENT_FOUND_ROWS` flag.
fooRepository.save(fooRepository.findById(1))
It would be nice if there’s an option to enable CLIENT_FOUND_ROWS
flag in MySqlConnection.kt to enable it in MySqlConnectionFactoryProvider#create.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Spring Data R2DBC - Reference Documentation
To use all the features of Spring Data R2DBC, such as the repository support, you need to configure some parts of the library...
Read more >Use Spring Data R2DBC with Azure Database for MySQL
This article demonstrates creating a sample application that uses Spring Data R2DBC to store and retrieve information in Azure Database for ...
Read more >Accessing RDBMS with Spring Data R2dbc - Hantsy - Medium
Currently R2dbc supports H2, MySQL, MS SQL and PostgresSQL databases. ... of Spring Data R2dbc , the query derivation is not support, ...
Read more >Spring Mysql R2DBC Example - Vikas Verma
Spring Data R2DBC applies familiar Spring abstractions and repository support for R2DBC. –Spring Data R2DBC. The official site for R2DBC is ...
Read more >Spring data r2dbc: Problem connecting with mysql
It turns out to be a Spring boot issue. Please refer to the below git issue for the resolution.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fix is in version 1.2.3.
created PR #247