Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id E81C36323FF for ; Fri, 4 Jun 2010 11:22:15 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 50925-10 for ; Fri, 4 Jun 2010 14:22:08 +0000 (UTC) Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by mail.postgresql.org (Postfix) with ESMTP id 86F16633544 for ; Fri, 4 Jun 2010 11:22:08 -0300 (ADT) Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by pgfoundry.org (Postfix) with ESMTP id 629E110716D3 for ; Fri, 4 Jun 2010 14:22:06 +0000 (UTC) Received: from pgfoundry.org ([200.46.204.130]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 79827-02; Fri, 4 Jun 2010 14:21:59 +0000 (UTC) Received: by pgfoundry.org (Postfix, from userid 80) id 524D110716D2; Fri, 4 Jun 2010 14:21:59 +0000 (UTC) To: noreply@pgfoundry.org From: Subject: [ psqlodbc-Bugs-1010837 ] 2000 is returned instead of actual info for char column octet length and column size Content-type: text/plain; charset=UTF-8 Message-Id: <20100604142159.524D110716D2@pgfoundry.org> Date: Fri, 4 Jun 2010 14:21:59 +0000 (UTC) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.79 tagged_above=-10 required=5 tests=BAYES_50=0.8, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201006/15 X-Sequence-Number: 10315 Bugs item #1010837, was opened at 2010-06-04 08:50 You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1010837&group_id=1000125 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Farid Zidan (faridz) Assigned to: Hiroshi Inoue (hinoue) Summary: 2000 is returned instead of actual info for char column octet length and column size Initial Comment: SQLColAttribute returns 2000 for both SQL_DESC_OCTET_LENGTH and SQL_DESC_LENGTH for character column instead of actual values. rc = SQLColAttribute(hstmt, nCol, SQL_DESC_OCTET_LENGTH, NULL, 0, NULL, &pRow->buffer_length); rc = SQLColAttribute(hstmt, nCol, SQL_DESC_LENGTH, NULL, 0, NULL, (SQLLEN*) &pRow->column_size); Example, create table test_char (col1 char(8), col2 varchar(128)); I get 2000 for col1 and col2 octet length and column size instead of actual values I am using the fix driver provided for http://pgfoundry.org/tracker/index.php?func=detail&aid=1010827&group_id=1000125&atid=538 ---------------------------------------------------------------------- Comment By: Farid Zidan (faridz) Date: 2010-06-04 10:21 Message: ODBC DSN options page (2000 is set as Max Varchar) ---------------------------------------------------------------------- Comment By: Farid Zidan (faridz) Date: 2010-06-04 10:19 Message: I am also attaching screenshot of driver options dialog where Max Varchar is set to 2000 (coincidence same value?) ---------------------------------------------------------------------- Comment By: Hiroshi Inoue (hinoue) Date: 2010-06-04 09:56 Message: I get 8/16 for col1 and 128/256 for col2 here. Could you attach the Mylog output? regards, Hiroshi Inoue ---------------------------------------------------------------------- You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1010837&group_id=1000125