pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedSQLNumResultCol set to 0 for query using common table expression
4+ messages / 2 participants
[nested] [flat]
* SQLNumResultCol set to 0 for query using common table expression
@ 2009-09-17 12:10 the6campbells <the6campbells@gmail.com>
2009-09-18 15:53 ` Re: SQLNumResultCol set to 0 for query using common table expression Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 1 reply; 4+ messages in thread
From: the6campbells @ 2009-09-17 12:10 UTC (permalink / raw)
To: pgsql-odbc
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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: SQLNumResultCol set to 0 for query using common table expression
2009-09-17 12:10 SQLNumResultCol set to 0 for query using common table expression the6campbells <the6campbells@gmail.com>
@ 2009-09-18 15:53 ` Hiroshi Inoue <inoue@tpf.co.jp>
0 siblings, 0 replies; 4+ messages in thread
From: Hiroshi Inoue @ 2009-09-18 15:53 UTC (permalink / raw)
To: the6campbells <the6campbells@gmail.com>; +Cc: pgsql-odbc
the6campbells wrote:
> 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 <mailto: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.
Could you please try the drivers on testing for 8.4.0101 at
http://www.geocities.jp/inocchichichi/psqlodbc/index.html
?
regards,
Hiroshi Inoue
^ permalink raw reply [nested|flat] 4+ messages in thread
* SQLNumResultCol set to 0 for query using common table expression - broken again
@ 2010-10-27 12:47 the6campbells <the6campbells@gmail.com>
2010-10-27 15:32 ` Re: SQLNumResultCol set to 0 for query using common table expression - broken again the6campbells <the6campbells@gmail.com>
0 siblings, 1 reply; 4+ messages in thread
From: the6campbells @ 2010-10-27 12:47 UTC (permalink / raw)
To: pgsql-odbc
This is issue was reported previously and fixed in 8.4.0101 but see it in
the 9.0 driver.
with t_cte ( cte1,cte2,cte3 ) as ( select tset1.rnum, tset1.c1, tset1.c2
from tset1 ) select * from t_cte
SQLPrepare:
In: StatementHandle = 0x00841B38, StatementText = "with t_cte (
cte1,cte2,cte3 ) as ( select tset1.rn...", TextLength = 105
Return: SQL_SUCCESS=0
SQLNumResultCols:
In: StatementHandle = 0x00841B38, ColumnCountPtr = 0x00095428
Return: SQL_SUCCESS=0
Out: *ColumnCountPtr = 0
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: SQLNumResultCol set to 0 for query using common table expression - broken again
2010-10-27 12:47 SQLNumResultCol set to 0 for query using common table expression - broken again the6campbells <the6campbells@gmail.com>
@ 2010-10-27 15:32 ` the6campbells <the6campbells@gmail.com>
0 siblings, 0 replies; 4+ messages in thread
From: the6campbells @ 2010-10-27 15:32 UTC (permalink / raw)
To: pgsql-odbc
Actually, it was not the 9.0 driver doing this but the one which bundled
with the 9.0 windows server release (one click installer from enterprise
db).So the fix in 8.4.0101 was not in that install kit.
SQL_DBMS_NAME=17, 20, "PostgreSQL"
SQL_DBMS_VER=18, 12, "9.0rc1"
SQL_DEFAULT_TXN_ISOLATION=26, 4,
SQL_TXN_READ_COMMITTED = 2
SQL_DESCRIBE_PARAMETER=10002, 2, "N"
SQL_DM_VER=171, 30, "03.52.1132.0000"
SQL_DRIVER_HDBC=3, 4, 0x013C4830
SQL_DRIVER_HDESC=135, 4, 0x013C9728
SQL_DRIVER_HENV=4, 4, 0x013C2940
SQL_DRIVER_HLIB=76, 4, 0x01300000
SQL_DRIVER_HSTMT=5, 4, 0x013C96C0
SQL_DRIVER_NAME=6, 30, "PSQLODBC35W.DLL"
SQL_DRIVER_ODBC_VER=77, 10, "03.51"
SQL_DRIVER_VER=7, 20, "08.04.0200"
vs
SQL_DATABASE_NAME=16, 16, "postgres"
SQL_DBMS_NAME=17, 20, "PostgreSQL"
SQL_DBMS_VER=18, 12, "9.0rc1"
SQL_DEFAULT_TXN_ISOLATION=26, 4,
SQL_TXN_READ_COMMITTED = 2
SQL_DESCRIBE_PARAMETER=10002, 2, "N"
SQL_DM_VER=171, 30, "03.52.1132.0000"
SQL_DRIVER_HDBC=3, 4, 0x014E4930
SQL_DRIVER_HDESC=135, 4, 0x014E95D0
SQL_DRIVER_HENV=4, 4, 0x014E2940
SQL_DRIVER_HLIB=76, 4, 0x01450000
SQL_DRIVER_HSTMT=5, 4, 0x014E9568
SQL_DRIVER_NAME=6, 30, "PSQLODBC35W.DLL"
SQL_DRIVER_ODBC_VER=77, 10, "03.51"
SQL_DRIVER_VER=7, 20, "09.00.0101"
On Wed, Oct 27, 2010 at 8:47 AM, the6campbells <the6campbells@gmail.com>wrote:
> This is issue was reported previously and fixed in 8.4.0101 but see it in
> the 9.0 driver.
>
>
> with t_cte ( cte1,cte2,cte3 ) as ( select tset1.rnum, tset1.c1, tset1.c2
> from tset1 ) select * from t_cte
>
>
> SQLPrepare:
> In: StatementHandle = 0x00841B38, StatementText = "with t_cte (
> cte1,cte2,cte3 ) as ( select tset1.rn...", TextLength = 105
> Return: SQL_SUCCESS=0
> SQLNumResultCols:
> In: StatementHandle = 0x00841B38, ColumnCountPtr = 0x00095428
> Return: SQL_SUCCESS=0
> Out: *ColumnCountPtr = 0
>
>
>
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2010-10-27 15:32 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-09-17 12:10 SQLNumResultCol set to 0 for query using common table expression the6campbells <the6campbells@gmail.com>
2009-09-18 15:53 ` Hiroshi Inoue <inoue@tpf.co.jp>
2010-10-27 12:47 SQLNumResultCol set to 0 for query using common table expression - broken again the6campbells <the6campbells@gmail.com>
2010-10-27 15:32 ` Re: SQLNumResultCol set to 0 for query using common table expression - broken again the6campbells <the6campbells@gmail.com>
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