Hi folks, me again :)
> When you specify a target type, the R2DBC driver tries to convert the value to the target type
I'm assuming this conversion is deliberately not specified to allow for implementation specific conversions, right? Nevertheless, from experience with JDBC, one could safely assume that all "reasonable" conversions are supported by all drivers, e.g. any number (e.g. SMALLINT) can be retrieved as any other number type (e.g. java.lang.Long).
This assumption can be verified in some drivers, e.g. the PostgreSQL one.
Before I go and report all issues like these to the respective drivers:
Can you confirm:
- The behaviour is indeed deliberately implementation-specific, and clients will have to implement conversions themselves, or
- The behaviour is implementation-specific to some extent, but some "reasonable" conversions can be expeted to work
In either case, I think some additional remarks in the spec could be useful to make sure expectations meet reality.
Thanks,
Lukas