X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 02660DBCB0 for ; Thu, 24 Nov 2005 21:12:32 -0400 (AST) 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 60887-02 for ; Fri, 25 Nov 2005 01:12:35 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sapo.pt (relay2.ptmail.sapo.pt [212.55.154.22]) by svr1.postgresql.org (Postfix) with SMTP id DD757DBC82 for ; Thu, 24 Nov 2005 21:12:29 -0400 (AST) Received: (qmail 9863 invoked by uid 0); 25 Nov 2005 01:12:32 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.155) by relay2 with SMTP; 25 Nov 2005 01:12:32 -0000 Received: (qmail 1521 invoked from network); 25 Nov 2005 01:12:32 -0000 X-AntiVirus: PTMail-AV 0.3.87.1 X-Virus-Status: Clean (0.05015 seconds) Received: from unknown (HELO [10.0.0.6]) (op217537@[81.193.155.155]) (envelope-sender ) by mta5 (qmail-ldap-1.03) with SMTP for ; 25 Nov 2005 01:12:32 -0000 Subject: Re: Again the JSCreator and Metadata issues From: pedro farinha To: Kris Jurka Cc: "jdbc.postgres" In-Reply-To: References: <1132193745.6622.9.camel@localhost.localdomain> Content-Type: multipart/alternative; boundary="=-0v+l80Liqau3YCoZ2DMK" Message-Id: <1132881150.5757.18.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 (1.4.6-2) Date: Fri, 25 Nov 2005 01:12:31 +0000 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.673 required=5 tests=[AWL=-0.247, DNS_FROM_RFC_ABUSE=0.479, DNS_FROM_RFC_POST=1.44, HTML_MESSAGE=0.001] X-Spam-Score: 1.673 X-Spam-Level: * X-Archive-Number: 200511/199 X-Sequence-Number: 14297 --=-0v+l80Liqau3YCoZ2DMK Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi Kris, The binding and display works fine with the postgresql-8.2dev-500pf.jdbc3.jar, I am using Java1.5 (Creator ships with it) so I didn't try neither the "EE" or jdbc2 version, but I reckon it should not be a problem Thanks for that. Can you tell me if this fix (if that) will be included in the cvs? or in a snapshot? I would like to make a reference to it on the Sun forum. One other issue: On the early-access feedback discussion there are some issues relating with changing the transaction isolation level in the middle of the transaction. You know anything about it? Matthias Jakob posted a solution/workaround, which is basically removing the exception. see below. Thanks again for fixing this. public void setTransactionIsolation(int level) throws SQLException { if (protoConnection.getTransactionState() != ProtocolConnection.TRANSACTION_IDLE) //throw new PSQLException(GT.tr("Cannot change transaction isolation level in the middle of a transaction."), // PSQLState.ACTIVE_SQL_TRANSACTION); System.out.println("Cannot change transaction isolation level in the middle of a transaction. Old TransactionIsolation "+getTransactionIsolation()+ " new unset TransactionIsolation "+level); String isolationLevelName = getIsolationLevelName(level); if (isolationLevelName == null) throw new PSQLException(GT.tr("Transaction isolation level {0} not supported.", new Integer(level)), PSQLState.NOT_IMPLEMENTED); String isolationLevelSQL = "SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL " + isolationLevelName; execSQLUpdate(isolationLevelSQL); // nb: no BEGIN triggered } On Wed, 2005-11-23 at 22:01, Kris Jurka wrote: > On Fri, 18 Nov 2005, Kris Jurka wrote: > > > [People don't like -1 for getColumnDisplaySize()] > > > > I suggest we try returning Integer.MAX_VALUE for a while and see what > > complaints we get. Objections? > > > > I've adjusted this in cvs. Please try out one of these jars and let us > know how that works out. > > http://ejurka.com/pgsql/jars/pf/ > > Kris Jurka > > ---------------------------(end of broadcast)--------------------------- > TIP 1: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly --=-0v+l80Liqau3YCoZ2DMK Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Hi Kris,
The binding and display works fine with the postgresql-8.2dev-500pf.jdbc3.jar, I am using Java1.5 (Creator ships with it) so I didn't try neither the "EE" or jdbc2 version, but I reckon it should not be a problem
Thanks for that.

Can you tell me if this fix (if that) will be included in the cvs? or in a snapshot? I would like to make a reference to it on the Sun forum.

One other issue:
On the early-access feedback discussion there are some issues relating with changing the transaction isolation level in the middle of the transaction. You know anything about it?

Matthias Jakob posted a solution/workaround, which is basically removing the exception. see below.

Thanks again for fixing this.


public void setTransactionIsolation(int level) throws SQLException
{
if (protoConnection.getTransactionState() != ProtocolConnection.TRANSACTION_IDLE)
//throw new PSQLException(GT.tr("Cannot change transaction isolation level in the middle of a transaction."),
// PSQLState.ACTIVE_SQL_TRANSACTION);
System.out.println("Cannot change transaction isolation level in the middle of a transaction. Old TransactionIsolation "+getTransactionIsolation()+
" new unset TransactionIsolation "+level);

String isolationLevelName = getIsolationLevelName(level);
if (isolationLevelName == null)
throw new PSQLException(GT.tr("Transaction isolation level {0} not supported.", new Integer(level)), PSQLState.NOT_IMPLEMENTED);

String isolationLevelSQL = "SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL " + isolationLevelName;
execSQLUpdate(isolationLevelSQL); // nb: no BEGIN triggered
}


On Wed, 2005-11-23 at 22:01, Kris Jurka wrote:
On Fri, 18 Nov 2005, Kris Jurka wrote:

> [People don't like -1 for getColumnDisplaySize()]
>
> I suggest we try returning Integer.MAX_VALUE for a while and see what 
> complaints we get.  Objections?
>

I've adjusted this in cvs.  Please try out one of these jars and let us 
know how that works out.

http://ejurka.com/pgsql/jars/pf/

Kris Jurka

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to majordomo@postgresql.org so that your
       message can get through to the mailing list cleanly
--=-0v+l80Liqau3YCoZ2DMK--