Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id C0F6E1337B5D for ; Fri, 12 Nov 2010 13:09:03 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 97061-04 for ; Fri, 12 Nov 2010 17:08:56 +0000 (UTC) X-Greylist: delayed 00:08:51.313054 by SQLgrey-1.7.6 Received: from mx01.bfk.de (mx01.bfk.de [193.227.124.2]) by mail.postgresql.org (Postfix) with ESMTP id DF9131337B4A for ; Fri, 12 Nov 2010 13:08:55 -0400 (AST) Received: from mx00.int.bfk.de ([10.119.110.2]) by mx01.bfk.de with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) id 1PGx1e-0007EI-Ju; Fri, 12 Nov 2010 17:02:58 +0000 Received: by bfk.de with local id 1PGx1e-000749-Gu; Fri, 12 Nov 2010 17:02:58 +0000 To: Till Toenges Cc: Maciek Sakrejda , Lew , pgsql-jdbc@postgresql.org Subject: Re: PSQLException: The column name was not found in this ResultSet. References: <270369.52816.qm@web113412.mail.gq1.yahoo.com> <4CDCDD42.6080103@kyon.de> From: Florian Weimer Date: Fri, 12 Nov 2010 17:02:58 +0000 In-Reply-To: <4CDCDD42.6080103@kyon.de> (Till Toenges's message of "Fri\, 12 Nov 2010 07\:22\:58 +0100") Message-ID: <82fwv6mq4d.fsf@mid.bfk.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201011/34 X-Sequence-Number: 21155 * Till Toenges: > The pgjdbc driver is supposed to be thread safe: > > http://jdbc.postgresql.org/documentation/pgjdbc.html#Using+the+Driver+in+= a+Multithreaded+or+a+Servlet+Environment > > Whether this is good or bad doesn't matter. Has been this way forever, > can't change that now. To me, it only says that Connection objects are thread-safe. ResultSets are a different story. To implement them in a thread-safe manner, you need a thread-local variables, otherwise you cannot get wasNull() right. --=20 Florian Weimer BFK edv-consulting GmbH http://www.bfk.de/ Kriegsstra=DFe 100 tel: +49-721-96201-1 D-76133 Karlsruhe fax: +49-721-96201-99