pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guillaume Cottenceau <gc@mnc.ch>
To: hw@solvedirect.com
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Upgrading jdbc
Date: Mon, 30 Nov 2009 12:14:40 +0100
Message-ID: <87hbscl0wv.fsf@meuh.mnc.lan> (raw)
In-Reply-To: <200911301052.14236.hw@solvedirect.com>
References: <200911301052.14236.hw@solvedirect.com>

hw 'at' solvedirect.com writes:

> Hello!
>
> I'm trying to upgrade to the current jdbc.
> I tried both jdbc3 and jdbc4.
>
> Until now we've been using pg74.215.jdbc3.jar.
> The code is using methods that need a ResultSet with a Type different than
> TYPE_FORWARD_ONLY. In the 7.4-version this seems to be standard.
>
> For the new one I need to do:
> PreparedStatement stmnt = 
> connection.prepareStatement(JDBCEscSeq.convertEscSeq(sqlStmnt, objs), 
> java.sql.ResultSet.TYPE_SCROLL_INSENSITIVE, 
> java.sql.ResultSet.CONCUR_READ_ONLY);
> for the code to function as before.
>
> So far this works. Unfortunately the execution of some statements is
> extremly slow.

You may hit a problem with the protocol version 3 and prepared
statements with variable parameters.

http://archives.postgresql.org/pgsql-jdbc/2009-03/msg00027.php

-- 
Guillaume Cottenceau



view thread (3+ messages)

Message-ID: <87hbscl0wv.fsf@meuh.mnc.lan>
Permalink:  ../87hbscl0wv.fsf@meuh.mnc.lan/
Also on:    postgresql.org/message-id/87hbscl0wv.fsf@meuh.mnc.lan

 · 

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: gc@mnc.ch, hw@solvedirect.com
  Subject: Re: Upgrading jdbc
  In-Reply-To: <87hbscl0wv.fsf@meuh.mnc.lan>
  References: <200911301052.14236.hw@solvedirect.com> <87hbscl0wv.fsf@meuh.mnc.lan>

* 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