You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using ReactiveCrudRepository in order to retrieve the data:
@Query("SELECT DISTINCT * from PRODUCT prod WHERE regexp_like (prod.number, (:number) )" )
Flux<Product> findByNumberContaining(String number);
I would like to see in the logs what exact SQL is being executed, along with the values of number. I have followed answers from Log values of query parameters in Spring Data R2DBC?, but nothing seems to work.
I am able to see the SQL, but without the parameter values:
o.s.d.r2dbc.core.NamedParameterExpander : Expanding SQL statement [SELECT DISTINCT * from PRODUCT prod WHERE regexp_like (prod.number, (:number) )] to [SELECT DISTINCT * from PRODUCT prod WHERE regexp_like (prod.number, (:P0_number) )]
o.s.r2dbc.core.DefaultDatabaseClient : Executing SQL statement [SELECT DISTINCT * from PRODUCT prod WHERE regexp_like (prod.number, (:P0_number) ) ]
My current properties are full of different settings which suppose to work for others but not for me:
Oracle R2DBC doesn't include logging. While thelogging.level.io.r2dbc.postgresql.PARAM property may be supported by Postgres R2DBC, but Oracle R2DBC doesn't have an equivalent.
I can see this would be a desirable feature, so let's leave this issue open as a reminder to add it.
Dear @Michael-Mc-Mahon
Thank you for addressing my question. Yes indeed I have seen that Postrges R2DBC has this property to set so I thought there is similiar one in oracle.
Thanks for good work,
Agata
In my project I am using spring-data-r2bc which connects to an Oracle database. My dependencies are:
I am using ReactiveCrudRepository in order to retrieve the data:
I would like to see in the logs what exact SQL is being executed, along with the values of number. I have followed answers from Log values of query parameters in Spring Data R2DBC?, but nothing seems to work.
I am able to see the SQL, but without the parameter values:
My current properties are full of different settings which suppose to work for others but not for me:
How can I log the value of the parameter: (:number)?
The text was updated successfully, but these errors were encountered: