X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 37B033A3CB7 for ; Tue, 26 Oct 2004 12:53:41 +0100 (BST) 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 28049-01 for ; Tue, 26 Oct 2004 11:53:27 +0000 (GMT) Received: from hqex2k.francoudi.com (hqex2k.francoudi.com [217.27.32.8]) by svr1.postgresql.org (Postfix) with ESMTP id 0FD533A3ADB for ; Tue, 26 Oct 2004 12:53:28 +0100 (BST) X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Re: Problems with protocol V3 after migration to latest driver Date: Tue, 26 Oct 2004 14:53:28 +0300 Message-ID: <8BCBF9DB739F034B87FE7C7D30EAE55C03B1E476@hqex2k.francoudi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [JDBC] Problems with protocol V3 after migration to latest driver Thread-Index: AcS7Lxie7AmgzKhzRua2oAmJoxkSygAAPjFQAAh3VzA= From: "Alexey Yudichev" To: "Kris Jurka" Cc: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/270 X-Sequence-Number: 11375 Ah, except that thing with "at time zone": select now() at time zone ('-02:00'::interval); works OK in psql console; but with JDBC select now() at time zone (?::interval) with setString(1, '-02:00') gives me java.sql.SQLException: ERROR: cannot cast type character varying to interval at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecu= torImpl.java:1240) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImp= l.java:1043) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:= 138) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Stateme= nt.java:347) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdb= c2Statement.java:294) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2St= atement.java:209) -----Original Message----- From: Alexey Yudichev=20 Sent: Tuesday, October 26, 2004 1:00 PM To: Kris Jurka Cc: pgsql-jdbc@postgresql.org Subject: Re: [JDBC] Problems with protocol V3 after migration to latest dri= ver Works perfectly now, thanks.=20 I have also run the full test suite of my largest project with these new dr= ivers and V3 and 7.4.5 server and it showed no problems. So the planner pro= blem is the only one that remains with V3, is there a way to figure it out = or 8.0 server is the only solution? Is V3 protocol support in 7.4 server co= nsidered experimental or is it an issue of JDBC drivers? -----Original Message----- From: Kris Jurka [mailto:books@ejurka.com] Sent: Tuesday, October 26, 2004 10:41 AM To: Alexey Yudichev Cc: pgsql-jdbc@postgresql.org Subject: Re: [JDBC] Problems with protocol V3 after migration to latest dri= ver On Tue, 26 Oct 2004, Alexey Yudichev wrote: > No, it is still there with pgdev.307ay2.jdbc3.jar: >=20 > java.sql.SQLException: ERROR: large object 36405664 does not exist OK, I've tracked this one down. Some bit shifting code had a typo in it,= =20 that only affected sufficiently large oid values. This is why you only=20 saw the error on one machine. Newly updated jar files available again from=20 http://www.ejurka.com/pgsql/jars/alexey/ Kris Jurka ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org