X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 74EF652A1B; Thu, 18 Aug 2005 00:49:05 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 85857-07; Thu, 18 Aug 2005 03:49:03 +0000 (GMT) Received: from a1.selectacast.net (a1.selectacast.net [199.107.233.208]) by svr1.postgresql.org (Postfix) with ESMTP id 974E8528E7; Thu, 18 Aug 2005 00:49:01 -0300 (ADT) Received: from tupari.net (h-66-166-198-124.nycmny83.covad.net [66.166.198.124]) by a1.selectacast.net (8.12.8/8.12.8) with ESMTP id j7I3msBn008163; Wed, 17 Aug 2005 23:48:54 -0400 Received: from [192.168.1.3] (jks-desktop [192.168.1.3]) by tupari.net (8.13.1/8.12.8) with ESMTP id j7I3mrBT022106; Wed, 17 Aug 2005 23:48:54 -0400 Message-ID: <43040524.8060901@selectacast.net> Date: Wed, 17 Aug 2005 23:48:52 -0400 From: Joseph Shraibman User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050716 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Oliver Jowett Cc: pgsql-general@postgresql.org, pgsql-jdbc@postgresql.org Subject: Re: [JDBC] pg_locks.transaction field type References: <43040025.9070603@opencloud.com> In-Reply-To: <43040025.9070603@opencloud.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.073 required=5 tests=[AWL=0.023, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200508/922 X-Sequence-Number: 82330 Oliver Jowett wrote: > Joseph Shraibman wrote: > >> Is it a jdbc bug that is returning the answer as >> org.postgresql.util.PGobject instead of some kind of Number? > > > The column's type is 'xid' which the driver doesn't currently handle, so > it gets put into the "wrap it in PGobject" bucket. Is xid a type of number? > > I'm not sure what's changed between 7.4 & 8.0 -- did you also change > JDBC driver versions? yes > > Perhaps your server should convert instances of PGobject to their string > representations before returning them across RMI. That's what I'll do. Are there any other classes besides org.postgresql.util.PGobject that I have to worry about?