pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tjioe Ai Xin <xinxincute@gmail.com>
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Can PostgreSQL do data type automated casting in prepared
Date: Wed, 23 Nov 2005 19:05:52 +0700
Message-ID: <200511231905.53085.xinxincute@gmail.com> (raw)
In-Reply-To: <Pine.BSO.4.61.0511211806430.23994@leary.csoft.net>
References: <200511211718.26679.xinxincute@gmail.com>
	<Pine.BSO.4.61.0511211806430.23994@leary.csoft.net>

Dear Kris,

Where I can set protocolVersion=2?
And how about the performance?

Thanks in advance.
Xin Xin

On Tuesday 22 November 2005 06:08, Kris Jurka wrote:
> 
> On Mon, 21 Nov 2005, Tjioe Ai Xin wrote:
> 
> >
> > My code is like this: I have query: "Select count(*) / paramPage from 
> > tblFirst where condition"; The paramPage were filled from parameter 
> > which I specified as string data type. So I using setString method for 
> > my prepared statement for passing paramPage value. When I'm using the 
> > old jdbc driver pg74jdbc3.jar, I got no problem at all. But when I try 
> > to upgrade my PostgreSQL to 8.0.3. I got problem data type error.
> >
> > Can PostgreSQL do data type automated casting in prepared statement again?
> > So I do not need change my code :)
> >
> 
> Yes, and no.  You can restore the old behavior by adding 
> ?protocolVersion=2 to your connection URL, but using the older protocol 
> also means some new features and performance gains will be unavailable to 
> you.
> 
> Kris Jurka
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
> 



view thread (20+ messages)  latest in thread

Message-ID: <200511231905.53085.xinxincute@gmail.com>
Permalink:  ../200511231905.53085.xinxincute@gmail.com/
Also on:    postgresql.org/message-id/200511231905.53085.xinxincute@gmail.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: xinxincute@gmail.com, books@ejurka.com
  Subject: Re: Can PostgreSQL do data type automated casting in prepared
  In-Reply-To: <200511231905.53085.xinxincute@gmail.com>
  References: <200511211718.26679.xinxincute@gmail.com> <Pine.BSO.4.61.0511211806430.23994@leary.csoft.net> <200511231905.53085.xinxincute@gmail.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