Skip site navigation (1) Skip section navigation (2)

Re: [Pgjdbc-commit] By jurka: Add some more synchronization to the

From: Markus Schaber <schabi(at)logix-tt(dot)com>
To: "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: [Pgjdbc-commit] By jurka: Add some more synchronization to the
Date: 2006-05-22 07:59:14
Message-ID: 44716F52.8080202@logix-tt.com (view raw or flat)
Thread:
Lists: pgsql-jdbc
Hi, Till,

CVS User Account wrote:
> Make _pgNameToSQLType static.

>      // pgname (String) -> java.sql.Types (Integer)
> -    private Map _pgNameToSQLType;
> +    private static final Map _pgNameToSQLType;

Are you shure this should be static, and not per connection?

AFAICS, it is possible to have two connections to different databases
having different extension types installed, leading to conflicting maps.

Thanks,
Markus

-- 
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org

Responses

pgsql-jdbc by date

Next:From: Kris JurkaDate: 2006-05-22 08:09:10
Subject: Re: [Pgjdbc-commit] By jurka: Add some more synchronization
Previous:From: Kris JurkaDate: 2006-05-22 07:28:52
Subject: Re: how to handle data containing '\0'

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group