Re: Spring JDBC and the PostgreSQL JDBC driver

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: Spring JDBC and the PostgreSQL JDBC driver
Дата
Msg-id 533D8EC7.7020004@hogranch.com
обсуждение исходный текст
Ответ на Spring JDBC and the PostgreSQL JDBC driver  ("Miller, Michael W" <michael.w.miller@lmco.com>)
Ответы Re: Spring JDBC and the PostgreSQL JDBC driver  (Matthew Chambers <mchambers@wetafx.co.nz>)
Список pgsql-general
On 4/3/2014 9:10 AM, Miller, Michael W wrote:

The issue I’m running into is the interaction between the Spring Framework JDBC functionality and the PostgreSQL JDBC driver. The specific issue is that I’m using SimpleJdbcCall.execute() to call the database and getting back a Jdbc4Array. When I then try to do something like Jdbc4Array.getArray() I get a SQL error that can be tracked down to the Jdbc driver trying to use a connection object which has already been closed by the Spring Framework.

 

One of the benefits of the Spring Framework is that I don’t have to bother with the drudge work like creating\closing connections. The drawback seems to be that the JDBC driver is making assumptions like the connection is still open.


if that framework is opening/closing connections on every query, its broken from a performance perspective.   and if it has methods that return objects, that are then broken, THATS also broken behavior.

but yeah, this belongs on the jdbc list.


-- 
john r pierce                                      37N 122W
somewhere on the middle of the left coast

В списке pgsql-general по дате отправления:

Предыдущее
От: "Schnabel, Robert D."
Дата:
Сообщение: Re: window function help
Следующее
От: John R Pierce
Дата:
Сообщение: Re: SSD Drives