X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1F834D6F74 for ; Thu, 1 Sep 2005 11:57:29 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 33270-05 for ; Thu, 1 Sep 2005 14:57:26 +0000 (GMT) Received: from svctag-ckgvz71.mailserver.wazagua.com (unknown [209.34.245.244]) by svr1.postgresql.org (Postfix) with ESMTP id 1264CD6D83 for ; Thu, 1 Sep 2005 11:57:24 -0300 (ADT) Received: from jfradkin ([66.15.127.235]) by svctag-ckgvz71.mailserver.wazagua.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 1 Sep 2005 10:57:36 -0400 From: "Joel Fradkin" To: "'Dave Page'" Cc: Subject: Re: figuring out why I am having this issue Date: Thu, 1 Sep 2005 10:59:58 -0400 Message-ID: <000c01c5af05$d28e8520$797ba8c0@jfradkin> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable In-Reply-To: X-OriginalArrivalTime: 01 Sep 2005 14:57:36.0937 (UTC) FILETIME=[7DC02990:01C5AF05] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=2.903 required=5 tests=[AWL=-0.173, MSGID_DOLLARS=3.076] X-Spam-Level: ** X-Archive-Number: 200509/10 X-Sequence-Number: 5908 I don't get that kind of control. In asp you assign a record set: set rec =3D cmd.Execute Rec is not defined other then=20 set rec =3D server.CreateObject("ADODB.Recordset") What is weird is one SQL from this record where works and another does = not. One is for our print preview page and it has several fields = de-normalized for display (it works), while the other is just reading from the table = using a normalized data set. Why changing max changes it to working is not = clear as it should be able to determine the size of the field, and why = changing it breaks other places (I am making it larger so it shouldn't be causing e_failed).=20 Joel Fradkin =20 Wazagua, Inc. 2520 Trailmate Dr Sarasota, Florida 34243 Tel. 941-753-7111 ext 305 =20 jfradkin@wazagua.com www.wazagua.com Powered by Wazagua Providing you with the latest Web-based technology & advanced tools. C 2004. WAZAGUA, Inc. All rights reserved. WAZAGUA, Inc This email message is for the use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized = review, use, disclosure or distribution is prohibited. If you are not the = intended recipient, please contact the sender by reply email and delete and = destroy all copies of the original message, including attachments. =20 =20 -----Original Message----- From: Dave Page [mailto:dpage@vale-housing.co.uk]=20 Sent: Thursday, September 01, 2005 10:50 AM To: Joel Fradkin Cc: pgsql-odbc@postgresql.org Subject: RE: [ODBC] figuring out why I am having this issue =20 > -----Original Message----- > From: Joel Fradkin [mailto:jfradkin@wazagua.com]=20 > Sent: 01 September 2005 15:43 > To: Dave Page > Cc: pgsql-odbc@postgresql.org > Subject: RE: [ODBC] figuring out why I am having this issue >=20 > I would like to look at this code, but searching the source I=20 > am not even > seeing it? >=20 > char szData[max_longvarchar_size]; > char szChunk[1024]; > =20 > // Get the data in chunks > do=20 > { > retcode =3D SQLGetData(hStmt, 1, SQL_C_CHAR, szChunk, > sizeof(szChunk), &cbData); > strcat(szData, szChunk); >=20 > } while (retcode !=3D SQL_SUCCESS && retcode !=3D SQL_NO_DATA); >=20 > Maybe I am too out of touch with C to be any help, but I=20 > should at a minimum > be able to see the code you are referenceing? :-) You won't find that in the source - it's an example to show what your app (or MS ADO or similar) might be doing wrong. If the actual data being read in the SQLGetData call is larger than max_longvarchar_size, it'll overflow szData. I guess one answer might be to cap the size reported by SQLGetData to whatever the column size is, but I'm pretty sure that will likely break things for other people (though it should be fixable by tweaking maxlongvarcharsize). Regards, Dave.