Re: getNotifications - Mailing list pgsql-jdbc

From Maciek Sakrejda
Subject Re: getNotifications
Date
Msg-id CAOtHd0DnX61qY+eZzR8WaJxrd_GwH-dFBvRTxvXzx1TkCyTwFA@mail.gmail.com
Whole thread Raw
In response to Re: getNotifications  (dmp <danap@ttc-cmc.net>)
Responses Re: getNotifications  (dmp <danap@ttc-cmc.net>)
List pgsql-jdbc
> I'm not sure, but I think I'm with Maciek's orginally response. I don't
> think you're going to be able to cast a java.sql.Connection to PGConnection
> then call one of the latter's methods.

You can, if that's the actual runtime type of the Connection object.
You get a Connection back from DriverManager, so it has to work like
that. If there's a pooler in the way things can get more hairy (i.e.,
PGConnection can be wrapped in something that implements
java.sql.Connection but is not a PGConnection, and that can end up as
the only thing expose to the user), but k f was talking about a
compile-time error.


pgsql-jdbc by date:

Previous
From: dmp
Date:
Subject: Re: getNotifications
Next
From: Maciek Sakrejda
Date:
Subject: Re: getNotifications