Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 1684A633816 for ; Thu, 17 Sep 2009 09:08:02 -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 90601-10 for ; Thu, 17 Sep 2009 12:07:53 +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 E574B632DD7 for ; Thu, 17 Sep 2009 09:07:53 -0300 (ADT) Received: by vws29 with SMTP id 29so183918vws.15 for ; Thu, 17 Sep 2009 05:07:52 -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=08/H4uUxyoZ16YGdxeCgEWFxWvmjyNExAJK9HT0Q3Nc=; b=uWp+GQCFmbz1M526MGIfyKlUtn3vfrRfrSjIe4OHfcND2+Z8TMsZG6z9PosEyMOIJ7 EKVN8o9OOf/Esb8t0fclocvrx8Xy/M5tIFXoM5uLXUuYia3LzOevVewU2grVxd+0wUfl BFUaOvX10ncfawbAr21VxVn4L3Kay0QH3BHj4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=BDAeL2/7ftr0b7yYLGRxmwP7z04Mk6bnSoo6mWhCjgZ9I/7Ie+eXACkuLr1AAnXhLt rKH64Ah/t2OZ4IqHv+gtimCQX6nsb1NAPnHqopUJUcIChzFksG7PEPCnv8UdnRJErig/ WhcBsu4l4tjvhGn3bDZrdQsbY/56fIqaizrPE= MIME-Version: 1.0 Received: by 10.220.101.16 with SMTP id a16mr13937410vco.89.1253189272242; Thu, 17 Sep 2009 05:07:52 -0700 (PDT) Date: Thu, 17 Sep 2009 08:07:52 -0400 Message-ID: <22431f1b0909170507i2fcf37f1gd6bde3e7b1db28d5@mail.gmail.com> Subject: bug in sqlDescribeCol for the result set returned by a stored procedure From: the6campbells To: pgsql-odbc@postgresql.org Content-Type: multipart/alternative; boundary=001636832a6c68a2250473c4ddb6 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/8 X-Sequence-Number: 9994 --001636832a6c68a2250473c4ddb6 Content-Type: text/plain; charset=ISO-8859-1 Does not seem to matter if the driver has server side prepare, parse etc options enabled. 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 --001636832a6c68a2250473c4ddb6 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Does not seem to matter if the driver has server side prepare, parse etc o= ptions enabled.=A0

Would someone also confirm if r= aising bugs via the web page on the postgres web site is also for ODBC, JDB= C etc issues or not.


> Bug reference: =A0 =A0 =A05056
> L= ogged by: =A0 =A0 =A0 =A0 =A0the6campbells
> Email address: =A0 =A0 = =A0the6campbells@gmail.com
> PostgreSQL version: 8.4.1
> Operating system: =A0 windows
>= ; Description: =A0 =A0 =A0 =A0SQLDescribeColW for function returning a resu= lt 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
>= ; '
> =A0select RNUM, C1, C2 from TSET1;
> ' =A0LANGUAG= E 'sql'
> ;
>
> in ODBC test sqlPrepare { call pr= es } then describe the columns. first
> column should be SQL_NO_NULLS not NULLABLE.
>
> Describe C= olumn All:
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0icol, szColName, *pc= bColName, *pfSqlType, *pcbColDef, *pibScale,
> *pfNullable
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A01, rnum, 4, SQL_INTEGER=3D4, 10, 0, SQL_NULLABLE=3D1
>= ; =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A02, c1, 2, SQL_INTEGER=3D4, 10, 0, SQL_NULLABLE= =3D1
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A03, c2, 2, SQL_WCHAR=3D-8, 3, 0, SQL_NULLABL= E=3D1

--001636832a6c68a2250473c4ddb6--