From: | Paul Thomas <paul(at)tmsl(dot)demon(dot)co(dot)uk> |
---|---|
To: | "pgsql-jdbc (at) postgresql (dot) org" <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: quick question about PreparedStatements |
Date: | 2003-07-25 08:06:58 |
Message-ID: | 20030725090658.A20737@bacon |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
On 24/07/2003 19:55 Felipe Schnack wrote:
> Can I use a single PreparedStatement to create various ResultSets and
> get data from all of them at the same time?
I don't think so. The Javadoc for Statement says:
"By default, only one ResultSet object per Statement object can be open at
the same time"
To me, this suggests that some db's may allow multiple ResultSets per
Statement but that such extensions would be non-portable. Looking at the
source for AbstactJdbc1Statement, it has
protected java.sql.ResultSet result = null;
So it looks like PG has the one ResultSet to one Statement implementation.
HTH
--
Paul Thomas
+------------------------------+---------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for the Smaller
Business |
| Computer Consultants |
http://www.thomas-micro-systems-ltd.co.uk |
+------------------------------+---------------------------------------------+
From | Date | Subject | |
---|---|---|---|
Next Message | Ole Streicher | 2003-07-25 11:25:59 | Another LargeObject problem |
Previous Message | Kim Ho | 2003-07-24 19:51:30 | Related patch to the getNumbers patch from earlier. |