The following code generates an exception shown below. Commenting out the refreshRow() call would solve the issue. This exception happens only in driver versions 42.2.13 and above. Is this a bug in the driver?
Exception in thread "main" java.lang.IllegalArgumentException: Attempted to write to readonly tuple at org.postgresql.core.Tuple.set(Tuple.java:96) at org.postgresql.jdbc.PgResultSet.setRowBufferColumn(PgResultSet.java:1680) at org.postgresql.jdbc.PgResultSet.updateRowBuffer(PgResultSet.java:1733) at org.postgresql.jdbc.PgResultSet.updateRow(PgResultSet.java:1378)