Constantine

Results 43 comments of Constantine
trafficstars

I throw exeption in JdbcQueryStatement To compare stacktraces (Looks pretty similar) from the case ``` Error executing PERSIST: STOP HERE io.micronaut.data.exceptions.DataAccessException: Error executing PERSIST: STOP HERE at app//io.micronaut.data.runtime.operations.internal.BaseOperations.failed(BaseOperations.java:131) at app//io.micronaut.data.runtime.operations.internal.BaseOperations.persist(BaseOperations.java:85)...

I think I found the problem: on my demo I found a query that pass nullability check

Problem reduced to query brokeт: `select :param is null` works: `select (:param)\:\:uuid is null` explicitly coerce parameter to specific type because it can't be inferred from comparing value It can't...

The most interesting part is r2dbc driver, which isn't affected at all _Without fix:_ ``` ./gradlew data-jdbc:test --tests=*UUIDSpec FAILURE: Executed 25 tests in 1m 13s (1 failed) ./gradlew data-r2dbc:test --tests=*UUIDSpec...

`:data-processor:test SUCCESS: Executed 557 tests in 2m 17s (6 skipped)`

I see a problem with ``` error: Unable to implement Repository method: H2UuidRepository.findByNullableValue(UUID arg0). No method parameter found for named Query parameter: param ``` Relevant code is in `io.micronaut.data.processor.visitors.finders.RawQueryMethodMatcher#getQueryResult` Don't...

@dstepanov honestly I don't see a mention on @Parameter in micronaut-data [guide](https://micronaut-projects.github.io/micronaut-data/latest/guide/). There isn't annotaion in [example ](https://micronaut-projects.github.io/micronaut-data/latest/guide/#explicitQueries) an for another databases it works as is

Could be a regression for #950

As a workaround I'm using ``` (:var= '00000000-0000-0000-0000-000000000000' OR cls.id = :var) ```

@Goldmensch Take a look at PR with fix and [demo](https://github.com/rlconst/micronaut-playground/blob/master/demo/src/test/kotlin/me/blzr/NullableUuidTest.kt) I didn't test another databases, but with high probability `JdbcQueryStatement` should know a dialect it working with