Open MarcusDunn opened 4 months ago
I think this is the same issue as https://github.com/jOOQ/jOOQ/issues/15548 / https://github.com/jOOQ/jOOQ/issues/13590. Wild I have not run into this before.
Thanks for your report. Yes, #13590 lists lack of array support so far in R2DBC.
Expected behavior
does not throw.
Actual behavior
it throws.
Stacktrace
Steps to reproduce the problem
results the following SQL (as logged by
io.r2dbc.postgresql.QUERY
)DDL
Extra notes from debugging on my end
It seems to me that the bug may be in the r2dbc driver. The cast that jooq does seems correct (I would want a
JSONB[]
back, not aString
), I would not know how to reproduce with just the driver though, so here I am.Using
jsonbArrayAgg
works fine, but is much slower.the RowDescription has dataType
3807
the string the cast fails on (in my test to reproduce) is
{"{\"Sadness\": 1.0}"}
jOOQ Version
3.19.10
Database product and version
PostgreSQL 16.2 (Debian 16.2-1.pgdg110+2) on x86_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit
Java Version
21 corretto
JDBC / R2DBC driver name and version (include name if unofficial driver)
org.postgresql.r2dbc-postgresql:1.0.4.RELEASE
AND
org.postgresql.r2dbc-postgresql:1.0.5.RELEASE