Adopt R2DBC to H2 changes.

See #636
This commit is contained in:
Mark Paluch
2022-04-26 10:27:23 +02:00
committed by Greg L. Turnquist
parent 2eae935af8
commit d48ef2a527

View File

@@ -41,7 +41,7 @@ class ApplicationConfiguration {
if (customer.id() == null) {
return databaseClient.sql("SELECT primary_key.nextval") //
return databaseClient.sql("SELECT NEXT VALUE FOR primary_key") //
.map(row -> row.get(0, Long.class)) //
.first() //
.map(customer::withId);