I'm using Db2 LUW v11.5.5.1 as available from docker hub with this schema:
create table t (i int, j int);
insert into t values (1, 2);
When I run this statement from DBeaver:
select json_array(i, j)
from t;
Then I'm getting this error:
SQL Error [08001]: [jcc][t4][2030][11211][4.29.24] A communication error occurred during operations on the connection's underlying socket, socket input stream, or socket output stream. Error location: Reply.fill() - insufficient data (-1). Message: Insufficient data. ERRORCODE=-4499, SQLSTATE=08001
This works:
select json_array(1, 2)
from t;
Is this a known bug on the server / in the JDBC driver (I've tried all driver versions between 11.5.0.0, 11.5.4.0, 11.5.5.0, 11.5.6.0 from maven central)? Are there workarounds?