пт, 15 июл. 2016 г. в 18:07, Andrea Bergia <a(dot)bergia(at)list-group(dot)com>:
> I've noticed that everything works as expected if I use:
>
> connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);
>
By the way: current pgjdbc returns all the columns in case of
Statement.RETURN_GENERATED_KEYS. So be careful when using it with wide
tables.
It's better sticking with String[] kind of APIs or filing a PR so
"RETURN_GENERATED_KEYS" fetches only keys, not all the columns.
Vladimir
>