pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: the6campbells <the6campbells@gmail.com>
To: pgsql-odbc@postgresql.org
Subject: SQLNumResultCol set to 0 for query using common table expression
Date: Thu, 17 Sep 2009 08:10:01 -0400
Message-ID: <22431f1b0909170510p62155321i7b982b18afbd7e@mail.gmail.com> (raw)

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

view thread (4+ messages)  latest in thread

Message-ID: <22431f1b0909170510p62155321i7b982b18afbd7e@mail.gmail.com>
Permalink:  ../22431f1b0909170510p62155321i7b982b18afbd7e@mail.gmail.com/
Also on:    postgresql.org/message-id/22431f1b0909170510p62155321i7b982b18afbd7e@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: the6campbells@gmail.com
  Subject: Re: SQLNumResultCol set to 0 for query using common table expression
  In-Reply-To: <22431f1b0909170510p62155321i7b982b18afbd7e@mail.gmail.com>
  References: <22431f1b0909170510p62155321i7b982b18afbd7e@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox