Re: PSQLException: The column name <col> was not found in this ResultSet.

From: Florian Weimer <fweimer(at)bfk(dot)de>
To: Till Toenges <tt(at)kyon(dot)de>
Cc: Maciek Sakrejda <msakrejda(at)truviso(dot)com>, Lew <noone(at)lewscanon(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: PSQLException: The column name <col> was not found in this ResultSet.
Date: 2010-11-12 17:02:58
Message-ID: 82fwv6mq4d.fsf@mid.bfk.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

* 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.

--
Florian Weimer <fweimer(at)bfk(dot)de>
BFK edv-consulting GmbH http://www.bfk.de/
Kriegsstraße 100 tel: +49-721-96201-1
D-76133 Karlsruhe fax: +49-721-96201-99

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Lew 2010-11-13 00:00:33 Re: PSQLException: The column name <col> was not found in this ResultSet.
Previous Message Florian Weimer 2010-11-12 17:00:02 Re: PSQLException: The column name <col> was not found in this ResultSet.