Re: PGConnection getNotifications

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: PGConnection getNotifications
Дата
Msg-id 502F0754.8000406@ringerc.id.au
обсуждение исходный текст
Ответ на PGConnection getNotifications  (k f <kfan.b1@gmail.com>)
Список pgsql-jdbc
On 08/17/2012 11:32 PM, k f wrote:
I'm a newbie to postgreSQL so please forgive my ignorance.  I am able to write code that connects/updates a database. I copied a simple Notify/Listen example and for the life of me I can't seem to figure out why the getNotifications() method for the PGConnection class is undefined?  All the examples use it and the docs say its available after version 7.3 or so.  I've installed PostgreSQL 9.1.4, and link to postgresql-9.0-801.jdbc4.jar in my project.  What piece am I missing?

Please show your code, preferably a self-contained class that you can post in its entirety.

At a guess, you're trying to use getNotifications() on the JDBC java.sql.Connection object, without unwrapping it to get the underlying PGConnection.

--
Craig Ringer

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

Предыдущее
От: kfan
Дата:
Сообщение: Re: getNotifications
Следующее
От: kfan
Дата:
Сообщение: Re: PGConnection getNotifications