Until version 8 (now using build 308), I used a prepared statement
INSERT INTO mytable(array_column) VALUES(?);
and
setString(1, my_formatter(java_array));
where my_formatter turns a Java double[] into a string in the form {1.0} .
This doesn't work any more, with the error message that character
varying can not be converted to real[] . I think it's with the driver,
because the braces form still works fine with psql. I changed the
formatter to produce a string in ARRAY[1.0] notation with the same error
message.