Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 765989FB28F for ; Wed, 4 Oct 2006 15:42:34 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 29696-02 for ; Wed, 4 Oct 2006 18:42:26 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by postgresql.org (Postfix) with ESMTP id BAE459FB24D for ; Wed, 4 Oct 2006 15:42:26 -0300 (ADT) Received: from localhost (mx1.hub.org [200.46.208.251]) by pgfoundry.org (Postfix) with ESMTP id 8953E86C69F; Wed, 4 Oct 2006 18:42:26 +0000 (UTC) Received: from pgfoundry.org ([200.46.204.130]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 24971-01; Wed, 4 Oct 2006 15:42:24 -0300 (ADT) Received: by pgfoundry.org (Postfix, from userid 80) id 2F43386C6A8; Wed, 4 Oct 2006 18:42:24 +0000 (UTC) To: noreply@pgfoundry.org From: Subject: [ psqlodbc-Bugs-1000744 ] 08.02.01: Incorrect size returned for adVarWChar and adVarChar fields after Paremeters.Refresh. Content-type: text/plain; charset=UTF-8 Message-Id: <20061004184224.2F43386C6A8@pgfoundry.org> Date: Wed, 4 Oct 2006 18:42:24 +0000 (UTC) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.961 tagged_above=0 required=5 tests=NO_REAL_NAME X-Spam-Level: X-Archive-Number: 200610/4 X-Sequence-Number: 8267 Bugs item #1000744, was opened at 2006-10-04 13:42 You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000744&group_id=1000125 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Adam Biser (adambiser) Assigned to: Nobody (None) Summary: 08.02.01: Incorrect size returned for adVarWChar and adVarChar fields after Paremeters.Refresh. Initial Comment: I'm using VB6 on a Windows XP machine with ODBC driver 08.02.01 and PostgreSQL 8.2beta1. CREATE TABLE testtable ( code integer NOT NULL, testfield character varying(5000), CONSTRAINT proschargemstrpk PRIMARY KEY (proschargecode) ) When I use a Command object, set the CommandText, and perform a .Parameters.Refresh, the .Size of testfield's parameter is 254 instead of 5000 and setting the .Value of the parameter to anything longer than 254 characters results in an error. This happens with both the Unicode and ANSI drivers. The create table statement that pgAdmin III gives me is included at the top. If any additional information is needed, I will provide it. ---------------------------------------------------------------------- You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000744&group_id=1000125