Обсуждение: RE: JDBC for 7.0 - Tuple received before MetaData ex ception

Поиск
Список
Период
Сортировка

RE: JDBC for 7.0 - Tuple received before MetaData ex ception

От
Peter Mount
Дата:
No you can run multiple threads, as long as it is one statement per thread.
My thinking at the time was that your code may not have been running one
statement per thread, or that the locking on PG_Stream wasn't working
properly.

Peter

-- 
Peter Mount
Enterprise Support
Maidstone Borough Council
Any views stated are my own, and not those of Maidstone Borough Council. 


-----Original Message-----
From: Joseph Shraibman [mailto:jks@selectacast.net]
Sent: Friday, May 26, 2000 8:11 PM
To: Peter Mount
Cc: 'Gunnar R|nning'; pgsql-interfaces@postgresql.org
Subject: Re: [INTERFACES] JDBC for 7.0 - Tuple received before MetaData
exception


Peter Mount wrote:
> 
> Not sure, but the only way this could happen is what it states: It's
> getting tuples before it's expecting to get them.
> 
> Are you running multiple threads on the same connection?
>
You mean you can't do that?  I thought you couldn't on the same
Statement.  My code creates one connection object and gets a statement
from it for each thread.