Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id C2A21633BE7 for ; Thu, 17 Sep 2009 09:10:10 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 90891-04 for ; Thu, 17 Sep 2009 12:10:02 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-vw0-f191.google.com (mail-vw0-f191.google.com [209.85.212.191]) by mail.postgresql.org (Postfix) with ESMTP id 12BDD633B3C for ; Thu, 17 Sep 2009 09:10:02 -0300 (ADT) Received: by vws29 with SMTP id 29so184772vws.15 for ; Thu, 17 Sep 2009 05:10:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=c6bGYUkuwTaunPW6FyFgRtoUssck70HDMqibh0TLsx4=; b=BXzblnpz8RLu2Mr6dIVIdnV9tFl9ofyMgnBXPJErxeE5Z2nmMFsbdEPkExhoeI9LZ8 eZxIv0uyo5aRuejpJIxUdzLZQp2h67E+2l4p+u60UD72I9sKi2XtVFfsqEQV0hpaSzS4 +AyNeUxx7qsggXVZAP2hPnWY6kRyoVi5m+HJI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=dqy+OIW+9IxDfNGgxcucwGx6QRsgElD0IMrnZt3flry9eJeewYZGN4ZBW35J0zpRqY EW5BYdls0WVBkx+bnl2WF6tCjUUCm9BPpIh1CL61OqAQLcOXm2r5WVWlhF9S6BqK2MZc NVZxaj73+efQVyKg5Mqg/cef+QDXUFNR8hjVQ= MIME-Version: 1.0 Received: by 10.220.107.103 with SMTP id a39mr14186157vcp.6.1253189401364; Thu, 17 Sep 2009 05:10:01 -0700 (PDT) Date: Thu, 17 Sep 2009 08:10:01 -0400 Message-ID: <22431f1b0909170510p62155321i7b982b18afbd7e@mail.gmail.com> Subject: SQLNumResultCol set to 0 for query using common table expression From: the6campbells To: pgsql-odbc@postgresql.org Content-Type: multipart/alternative; boundary=00c09f9057891acd700473c4e500 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.598 tagged_above=-10 required=5 tests=BAYES_00=-2.599, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200909/9 X-Sequence-Number: 9995 --00c09f9057891acd700473c4e500 Content-Type: text/plain; charset=ISO-8859-1 Similar to my previous post, if someone can confirm if the web page on the postgres site to report bugs includes ODBC/JDBC that would be appreciated. Bug reference: 5051 Logged by: the6campbells Email address: the6campbells@gmail.com PostgreSQL version: 8.4.1 Operating system: windows Description: SQLNumResultCols returns 0 for common table expression Details: "PostgreSQL 8.4.1, compiled by Visual C++ build 1400, 32-bit". Using 8.4.0.1 UNICODE ODBC driver. sqlnumresultcols returns 0 for queries using common table expression. create table TSET1 (RNUM integer not null, C1 integer, C2 char(3)); using odbctest sqlPrepare with t_cte ( cte1, cte2 ) as ( select tset1.c1, tset1.c2 from tset1 )select * from t_cte SQLPrepare: In:StatementHandle = 0x00841B10, StatementText = "with t_cte ( cte1, cte2 ) as ( select tset1.c1, ts...", TextLength = 88 Return: SQL_SUCCESS=0 SQLNumResultCols: In:StatementHandle = 0x00841B10, ColumnCountPtr = 0x0009ED90 Return: SQL_SUCCESS=0 Out:*ColumnCountPtr = 0 --00c09f9057891acd700473c4e500 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Similar to my previous post, if someone can confirm if the web page on the = postgres site to report bugs includes ODBC/JDBC that would be appreciated.<= div>
Bug reference:      5051
Logged by:          the6campbells
Email address:      the6campbell=
s@gmail.com
PostgreSQL version: 8.4.1
Operating system:   windows
Description:        SQLNumResultCols returns 0 for common table expression
Details:=20

"PostgreSQL 8.4.1, compiled by Visual C++ build 1400, 32-bit". Us=
ing 8.4.0.1
UNICODE ODBC driver.

sqlnumresultcols returns 0 for queries using common table expression.


create table TSET1 (RNUM integer not null, C1 integer, C2 char(3));

using odbctest

sqlPrepare=20
with t_cte ( cte1, cte2 ) as ( select tset1.c1, tset1.c2 from tset1 )select
* from t_cte

SQLPrepare:
In:StatementHandle =3D 0x00841B10, StatementText =3D "with t_cte ( cte=
1, cte2 )
as ( select tset1.c1, ts...", TextLength =3D 88
Return:	SQL_SUCCESS=3D0

SQLNumResultCols:
In:StatementHandle =3D 0x00841B10, ColumnCountPtr =3D 0x0009ED90
Return:	SQL_SUCCESS=3D0
Out:*ColumnCountPtr =3D 0
--00c09f9057891acd700473c4e500--