pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <inoue@tpf.co.jp>
To: the6campbells <the6campbells@gmail.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: bug in sqlDescribeCol for the result set returned by a stored 	procedure
Date: Sat, 19 Sep 2009 00:58:44 +0900
Message-ID: <4AB3AE34.2040008@tpf.co.jp> (raw)
In-Reply-To: <22431f1b0909170507i2fcf37f1gd6bde3e7b1db28d5@mail.gmail.com>
References: <22431f1b0909170507i2fcf37f1gd6bde3e7b1db28d5@mail.gmail.com>

the6campbells wrote:
> Does not seem to matter if the driver has server side prepare, parse etc 
> options enabled. 

Unfortunately it seems very difficult to detect that the field
is not null.

regards,
Hiroshi Inoue

> Would someone also confirm if raising bugs via the web page on the 
> postgres web site is also for ODBC, JDBC etc issues or not.
> 
> 
>>  Bug reference:      5056
>>  Logged by:          the6campbells
>>  Email address:      the6campbells@gmail.com 
> <mailto:the6campbells@gmail.com>
>>  PostgreSQL version: 8.4.1
>>  Operating system:   windows
>>  Description:        SQLDescribeColW for function returning a result set
>>  incorrectly setting sql_nullable
>>  Details:
>>
>>  create table TSET1 (RNUM integer not null, C1 integer, C2 char(3));
>>
>>  create function PRES ( )
>>  returns setof TSET1 as
>>  '
>>   select RNUM, C1, C2 from TSET1;
>>  '  LANGUAGE 'sql'
>>  ;
>>
>>  in ODBC test sqlPrepare { call pres } then describe the columns. first
>>  column should be SQL_NO_NULLS not NULLABLE.
>>
>>  Describe Column All:
>>                                                         icol, 
> szColName, *pcbColName, *pfSqlType, *pcbColDef, *pibScale,
>>  *pfNullable
>>                                                                        
>          1, rnum, 4, SQL_INTEGER=4, 10, 0, SQL_NULLABLE=1
>>                                                                        
>                  2, c1, 2, SQL_INTEGER=4, 10, 0, SQL_NULLABLE=1
>>                                                                        
>                  3, c2, 2, SQL_WCHAR=-8, 3, 0, SQL_NULLABLE=1 




view thread (2+ messages)

Message-ID: <4AB3AE34.2040008@tpf.co.jp>
Permalink:  ../4AB3AE34.2040008@tpf.co.jp/
Also on:    postgresql.org/message-id/4AB3AE34.2040008@tpf.co.jp

 · 

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: inoue@tpf.co.jp, the6campbells@gmail.com
  Subject: Re: bug in sqlDescribeCol for the result set returned by a stored 	procedure
  In-Reply-To: <4AB3AE34.2040008@tpf.co.jp>
  References: <22431f1b0909170507i2fcf37f1gd6bde3e7b1db28d5@mail.gmail.com> <4AB3AE34.2040008@tpf.co.jp>

* 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