On 9 March 2016 at 05:40, Igal @ Lucee.org <i...@lucee.org> wrote: > On 3/8/2016 12:12 PM, Robert Haas wrote: > >> I agree that some research should be done on how this works in other >> systems, but I think we have a general problem with the server lacking >> certain capabilities that make it easy to implement a high-quality >> JDBC driver. And I think it would be good to work on figuring out how >> to fix that. >> > I will try to gather more information about the other DBMSs and drivers > and will post my findings here when I have them. > > Thanks. I know that's not the most fun thing to do in the world, but it's often needed when implementing something where part of the goal is being compatible with other vendors, etc.
Currently I suggest using Connection.prepareStatement(..., String generatedKeyColumns) where possible. I realise that's not practical for all apps, which is why supporting the int flag form better is desirable, and we just have to figure out what exactly we should be returning... -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services