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

From: Maciek Sakrejda <msakrejda(at)truviso(dot)com>
To: Lew <noone(at)lewscanon(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: PSQLException: The column name <col> was not found in this ResultSet.
Date: 2010-11-12 02:58:24
Message-ID: AANLkTimKWEdBdJS2gRFLYrHcAHNiA-Hx8=KGA7ucu3HH@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

>> Code which utilizes a
>> ResultSet should do so in a thread safe manner, rather than attempting
>> to make the resultset implementation thread-safe - unless my assumptions
>> about the intent of the interface designers is incorrect.
>
> It is meaningless to talk about thread safety with respect to interfaces.

I think Samuel was talking about the thread-safety guarantees of the
interface contract. E.g., the List interface does not guarantee
thread-safety, so if you want to call add() on multiple Lists from
multiple threads, synchronization is your responsibility. If the
interface contract of ResultSet does not guarantee thread safety, I
don't see why the driver should bother to offer it there. Hashtable,
Vector, and StringBuffer took that route, and look at them now.
---
Maciek Sakrejda | System Architect | Truviso

1065 E. Hillsdale Blvd., Suite 215
Foster City, CA 94404
(650) 242-3500 Main
www.truviso.com

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Maciek Sakrejda 2010-11-12 02:59:38 Re: PSQLException: The column name <col> was not found in this ResultSet.
Previous Message Lew 2010-11-12 02:09:12 Re: PSQLException: The column name <col> was not found in this ResultSet.