question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enable `CLIENT_FOUND_ROWS` in `r2dbc-mysql` in favor of `spring-data-r2dbc`

See original GitHub issue

After 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:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
oshaicommented, Aug 24, 2021

Fix is in version 1.2.3.

1reaction
oshaicommented, Aug 23, 2021

created PR #247

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found