Re: getNotifications

From: dmp <danap(at)ttc-cmc(dot)net>
To: kfan(dot)b1(at)gmail(dot)com, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: getNotifications
Date: 2012-08-17 18:12:22
Message-ID: 502E8986.1000806@ttc-cmc.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

dmp wrote:
>> 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.
>

Maciek Sakrejda wrote:
> 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.
>

Yep, your right. I took a closer look at the little piece of code that
was sent to the list its fine, but without the complete test code its
difficult to offer further help.

kfan:
> Maciek - I responded directly to your email and attached my test code.

As indicated please send info, test case code to list.

danap.

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message kfan 2012-08-17 22:47:22 Re: getNotifications
Previous Message Maciek Sakrejda 2012-08-17 17:33:19 Re: getNotifications