We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It looks like a bug
CryptoExchanges(null, null) Should generates this request : INSERT INTO "common"."CryptoExchanges" VALUES (DEFAULT, DEFAULT);
CryptoExchanges(null, null)
INSERT INTO "common"."CryptoExchanges" VALUES (DEFAULT, DEFAULT);
But I see it generates: INSERT INTO "common"."CryptoExchanges" VALUES (DEFAULT)
INSERT INTO "common"."CryptoExchanges" VALUES (DEFAULT)
With an error : Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Column count does not match; SQL statement:
Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Column count does not match; SQL statement:
I join a project with last version of Spring boot, Java, Kotlin and H2 R2dbc
You can find a test inside that generate this error And an SQL script for init the DB
@Test fun findByExchangeCodeNotNull() { // given val uni = CryptoExchanges(null, "uni") val null1 = CryptoExchanges(null, null) cryptoExchangesRepository.saveAll(listOf(uni, null1)).collectList().block() // when val res = cryptoExchangesRepository.findByExchangeCodeNotNull() // then res.`as`(StepVerifier::create) .expectNextMatches { it.id == 1L && it.exchangeCode == "uni" } .expectNextMatches { it.id == 2L && it.exchangeCode == null} .verifyComplete() } CREATE SCHEMA "common"; CREATE TABLE "common"."CryptoExchanges" ( "Id" SERIAL NOT NULL, "ExchangeCode" character varying(30) ); INSERT INTO "common"."CryptoExchanges" VALUES (DEFAULT, 'crypto'); INSERT INTO "common"."CryptoExchanges" VALUES (DEFAULT, DEFAULT);
demo.zip
Best
The text was updated successfully, but these errors were encountered:
This issue tracker hosts bug reports and feature requests for the R2DBC specification. Looking at your code, it seems related to Spring Data.
Sorry, something went wrong.
@mp911de thx I write to spring data now
No branches or pull requests
Bug Report
It looks like a bug
CryptoExchanges(null, null)
Should generates this request :INSERT INTO "common"."CryptoExchanges" VALUES (DEFAULT, DEFAULT);
But I see it generates:
INSERT INTO "common"."CryptoExchanges" VALUES (DEFAULT)
With an error :
Caused by: org.h2.jdbc.JdbcSQLSyntaxErrorException: Column count does not match; SQL statement:
I join a project with last version of Spring boot, Java, Kotlin and H2 R2dbc
You can find a test inside that generate this error
And an SQL script for init the DB
demo.zip
Best
The text was updated successfully, but these errors were encountered: