pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexey Yudichev <Alexey@francoudi.com>
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
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> (raw)

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(QueryExecutorImpl.java:1240)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1043)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:138)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:347)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:294)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:209)



-----Original Message-----
From: Alexey Yudichev 
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 driver


Works perfectly now, thanks. 
I have also run the full test suite of my largest project with these new drivers and V3 and 7.4.5 server and it showed no problems. So the planner problem 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 considered 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 driver




On Tue, 26 Oct 2004, Alexey Yudichev wrote:

> No, it is still there with pgdev.307ay2.jdbc3.jar:
> 
> 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, 
that only affected sufficiently large oid values.  This is why you only 
saw the error on one machine.

Newly updated jar files available again from 
http://www.ejurka.com/pgsql/jars/alexey/

Kris Jurka

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org



view thread (21+ messages)  latest in thread

Message-ID: <8BCBF9DB739F034B87FE7C7D30EAE55C03B1E476@hqex2k.francoudi.com>
Permalink:  ../8BCBF9DB739F034B87FE7C7D30EAE55C03B1E476@hqex2k.francoudi.com/
Also on:    postgresql.org/message-id/8BCBF9DB739F034B87FE7C7D30EAE55C03B1E476@hqex2k.francoudi.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: Alexey@francoudi.com, books@ejurka.com
  Subject: Re: Problems with protocol V3 after migration to latest driver
  In-Reply-To: <8BCBF9DB739F034B87FE7C7D30EAE55C03B1E476@hqex2k.francoudi.com>
  References: <8BCBF9DB739F034B87FE7C7D30EAE55C03B1E476@hqex2k.francoudi.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox