pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Florian Weimer <fweimer@bfk.de>
To: Till Toenges <tt@kyon.de>
Cc: Maciek Sakrejda <msakrejda@truviso.com>
Cc: Lew <noone@lewscanon.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: PSQLException: The column name <col> was not found in this ResultSet.
Date: Fri, 12 Nov 2010 17:02:58 +0000
Message-ID: <82fwv6mq4d.fsf@mid.bfk.de> (raw)
In-Reply-To: <4CDCDD42.6080103@kyon.de>
References: <270369.52816.qm@web113412.mail.gq1.yahoo.com>
	<alpine.BSO.2.00.1011091909160.7107@leary.csoft.net>
	<AANLkTimb4b+hv-8M+VwEUw_91y6Bw75u+i26sVZCD=kF@mail.gmail.com>
	<ibi7js$71l$1@news.albasani.net>
	<AANLkTimKWEdBdJS2gRFLYrHcAHNiA-Hx8=KGA7ucu3HH@mail.gmail.com>
	<ibij1o$kgv$1@news.albasani.net>
	<AANLkTimgd-ksOoersMpF=YhpZyWorY0n=cYxq3dDF4Fu@mail.gmail.com>
	<4CDCDD42.6080103@kyon.de>

* 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+Servle...
>
> 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@bfk.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



view thread (20+ messages)  latest in thread

Message-ID: <82fwv6mq4d.fsf@mid.bfk.de>
Permalink:  ../82fwv6mq4d.fsf@mid.bfk.de/
Also on:    postgresql.org/message-id/82fwv6mq4d.fsf@mid.bfk.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: fweimer@bfk.de, tt@kyon.de, msakrejda@truviso.com, noone@lewscanon.com
  Subject: Re: PSQLException: The column name <col> was not found in this ResultSet.
  In-Reply-To: <82fwv6mq4d.fsf@mid.bfk.de>
  References: <270369.52816.qm@web113412.mail.gq1.yahoo.com> <alpine.BSO.2.00.1011091909160.7107@leary.csoft.net> <AANLkTimb4b+hv-8M+VwEUw_91y6Bw75u+i26sVZCD=kF@mail.gmail.com> <ibi7js$71l$1@news.albasani.net> <AANLkTimKWEdBdJS2gRFLYrHcAHNiA-Hx8=KGA7ucu3HH@mail.gmail.com> <ibij1o$kgv$1@news.albasani.net> <AANLkTimgd-ksOoersMpF=YhpZyWorY0n=cYxq3dDF4Fu@mail.gmail.com> <4CDCDD42.6080103@kyon.de> <82fwv6mq4d.fsf@mid.bfk.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox