From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | John DeSoi <desoi(at)pgedit(dot)com> |
Cc: | PGSQL mailing list <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: table and column information from cursor? |
Date: | 2005-06-22 17:47:57 |
Message-ID: | 19758.1119462477@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
John DeSoi <desoi(at)pgedit(dot)com> writes:
> I was wondering if there is some way I'm missing to get the table and
> column information from a cursor. If I fetch from a cursor, the table
> OID and column number values are 0 in the row description. If I execute
> the same query directly without a cursor, the row description has the
> correct values for table OID and column number. I'm using the v3
> protocol via a socket with PostgreSQL 8.0.
Fixed in CVS tip. Turned out that prepared statements had the same
issue, that is in
PREPARE foo AS SELECT ...;
EXECUTE foo;
the row description returned by EXECUTE wouldn't tell you where the
columns came from.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Ed L. | 2005-06-22 18:18:26 | Re: Clustering and replication options |
Previous Message | Pablo Baena | 2005-06-22 17:43:03 | Re: Problem on function returning setof custom type |
From | Date | Subject | |
---|---|---|---|
Next Message | Hans-Jürgen Schönig | 2005-06-22 17:50:53 | Re: commit_delay, siblings |
Previous Message | Tom Lane | 2005-06-22 17:35:43 | Re: commit_delay, siblings |