Re: Tomcat JDBC Connection Pool interfaces to PostgreSQL...

Поиск
Список
Период
Сортировка
От Vladimir Sitnikov
Тема Re: Tomcat JDBC Connection Pool interfaces to PostgreSQL...
Дата
Msg-id CAB=Je-GePXXqyhuQSzf_Nx7+AVtZQRcGFWe3siOKEkjyKFjyXg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Tomcat JDBC Connection Pool interfaces to PostgreSQL...  (Eric Neron <eneron@e-djuster.ca>)
Список pgsql-jdbc
Note:
org.postgresql.jdbc.PgConnection, org.postgresql.core.BaseConnection, and org.postgresql.copy.CopyManager(BaseConnection connection) are NOT part of pgjdbc public API.
Those connection classes and CopyManager constructor should NOT be used in application code.

The proper interface is org.postgresql.PGConnection.
The proper way to get CopyManager is to call org.postgresql.PGConnection#getCopyAPI.

When using a connection pool, PGConnection pgConnection = connection.unwrap ( PGConnection.class ); should work.

Vladimir

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

Предыдущее
От: Vladimir Sitnikov
Дата:
Сообщение: Re: Tomcat JDBC Connection Pool interfaces to PostgreSQL...
Следующее
От: Vitalii Tymchyshyn
Дата:
Сообщение: Re: Cast java.sql.Connection to PGConnection