Re: getNotifications - Mailing list pgsql-jdbc

From Maciek Sakrejda
Subject Re: getNotifications
Date
Msg-id CAOtHd0AhB-DPHLjs4gS5=yocZDHngaYFVmzX7OuVierOU63Keg@mail.gmail.com
Whole thread Raw
In response to Re: getNotifications  (kfan <kfan.b1@gmail.com>)
Responses Re: getNotifications  (dmp <danap@ttc-cmc.net>)
Re: getNotifications  (kfan <kfan.b1@gmail.com>)
List pgsql-jdbc
On Fri, Aug 17, 2012 at 9:23 AM, kfan <kfan.b1@gmail.com> wrote:
> It's not an exception, it's a compile error.  I am casting the connection
> object to a PGConnection...interesting to note though that the methods
> available on the PGConnection object only shows the addDatatype method.
>
> the error: the method getNotifications() is undefined for type PGConnection.

That's odd, since getNotifications() was there before addDatatype if
I'm reading the history right.

> What I see now is PGNotification is not available but PGConnection is...not
> sure I saw that earlier.  Where is that class? Thought it was part of the
> same package.

It is. What version of the driver are you using? Also, it would be
useful to see a full (and, ideally, minimal) test case and the exact
compilation errors you're getting.

> The code is something I found online:

Seems reasonable at first glance...


pgsql-jdbc by date:

Previous
From: kfan
Date:
Subject: Re: getNotifications
Next
From: dmp
Date:
Subject: Re: getNotifications