I've included a snippet of the code where I'm experiencing this problem:
return r2dbcEntityTemplate.getDatabaseClient().sql(sqlQuery)
.fetch()
.rowsUpdated()
.flux()
.map(result ->{
if(dmlType.name().equalsIgnoreCase("update")) {
return Map.of("response_message",(Object) dmlType.getUpdatedRowMessage());
}
else if(dmlType.name().equalsIgnoreCase("delete")) {
return Map.of("response_message", (Object) dmlType.getUpdatedRowMessage());
}
return Map.of("response_message", (Object) dmlType.getModifiedRowCountMessage(result));
})
Thank you in advance for your assistance.
Best regards,
Siddharth Sahu