Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 2AD59635AE5 for ; Fri, 18 Sep 2009 12:59:00 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 85109-03 for ; Fri, 18 Sep 2009 15:58:48 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by mail.postgresql.org (Postfix) with SMTP id 44C7C636171 for ; Fri, 18 Sep 2009 12:58:48 -0300 (ADT) Received: (qmail 29187 invoked by uid 512); 18 Sep 2009 15:58:46 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 18 Sep 2009 15:58:46 -0000 Received: from unknown (HELO ?192.168.24.54?) (219.111.80.129) by sd.tpf.co.jp with SMTP; 18 Sep 2009 15:58:46 -0000 Message-ID: <4AB3AE34.2040008@tpf.co.jp> Date: Sat, 19 Sep 2009 00:58:44 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: the6campbells CC: pgsql-odbc@postgresql.org Subject: Re: bug in sqlDescribeCol for the result set returned by a stored procedure References: <22431f1b0909170507i2fcf37f1gd6bde3e7b1db28d5@mail.gmail.com> In-Reply-To: <22431f1b0909170507i2fcf37f1gd6bde3e7b1db28d5@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.392 tagged_above=-10 required=5 tests=AWL=1.207, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200909/13 X-Sequence-Number: 9999 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 > >> 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