X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id D223C9F94EA for ; Mon, 22 May 2006 04:59:06 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 25716-01 for ; Mon, 22 May 2006 04:59:01 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.logix-tt.com (mail.logix-tt.com [212.211.145.186]) by postgresql.org (Postfix) with ESMTP id 871119FA2D8 for ; Mon, 22 May 2006 04:58:59 -0300 (ADT) Received: from kingfisher.intern.logix-tt.com (Tb043.t.pppool.de [89.55.176.67]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logix-tt.com (Postfix) with ESMTP id A032D65800 for ; Mon, 22 May 2006 10:00:15 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id 453051853CA68 for ; Mon, 22 May 2006 09:59:14 +0200 (CEST) Message-ID: <44716F52.8080202@logix-tt.com> Date: Mon, 22 May 2006 09:59:14 +0200 From: Markus Schaber Organization: Logical Tracking and Tracing International AG, Switzerland User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "pgsql-jdbc@postgresql.org" Subject: Re: [Pgjdbc-commit] By jurka: Add some more synchronization to the References: <20060522040707.37E9811C0611@gborg.postgresql.org> In-Reply-To: <20060522040707.37E9811C0611@gborg.postgresql.org> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/91 X-Sequence-Number: 15219 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