Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T2R9r-0007Mo-L8 for pgsql-jdbc@postgresql.org; Fri, 17 Aug 2012 18:20:31 +0000 Received: from outbound.vnet-inc.com ([216.146.104.103]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1T2R9k-0000UC-Pq for pgsql-jdbc@postgresql.org; Fri, 17 Aug 2012 18:20:30 +0000 Received: from [192.168.157.132] (unknown [76.75.27.41]) by outbound.vnet-inc.com (Postfix) with ESMTP id E86745A5E; Fri, 17 Aug 2012 12:20:23 -0600 (MDT) Message-ID: <502E8986.1000806@ttc-cmc.net> Date: Fri, 17 Aug 2012 12:12:22 -0600 From: dmp User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.13) Gecko/20100914 SeaMonkey/2.0.8 MIME-Version: 1.0 To: kfan.b1@gmail.com, pgsql-jdbc@postgresql.org Subject: Re: getNotifications References: <1345217428484-5720228.post@n5.nabble.com> <1345220585174-5720235.post@n5.nabble.com> <502E7618.6040008@ttc-cmc.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201208/46 X-Sequence-Number: 23201 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.