X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6A45252B26 for ; Mon, 25 Jul 2005 10:24:02 -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 69343-09 for ; Mon, 25 Jul 2005 13:23:53 +0000 (GMT) Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by svr1.postgresql.org (Postfix) with ESMTP id ED23F52AEE for ; Mon, 25 Jul 2005 10:23:51 -0300 (ADT) Received: from jfradkin ([66.15.127.235]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0IK600I01QJVLSTB@vms048.mailsrvcs.net> for pgsql-odbc@postgresql.org; Mon, 25 Jul 2005 08:23:55 -0500 (CDT) Date: Mon, 25 Jul 2005 09:25:16 -0400 From: "Joel Fradkin" Subject: Re: Blank varchar and text fields In-reply-to: <005501c58e93$4ce5ea40$07c8a8c0@Miguel> To: "'Miguel Juan'" , "'Peter L.'" Cc: Message-id: <002901c5911c$4c1fa020$797ba8c0@jfradkin> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: quoted-printable X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=2.857 tagged_above=0 required=5 tests=AWL, MSGID_DOLLARS X-Spam-Level: ** X-Archive-Number: 200507/134 X-Sequence-Number: 5599 I switched to the zeos lib for my Delphi apps, so far so good. Joel Fradkin =20 -----Original Message----- From: pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-owner@postgresql.org] On Behalf Of Miguel Juan Sent: Friday, July 22, 2005 4:00 AM To: Peter L. Cc: pgsql-odbc@postgresql.org Subject: Re: [ODBC] Blank varchar and text fields Hello, You can use the version 7.x of the driver. Version 8.x of the driver=20 introduced this odd functionallity that returns blanks for all string = data=20 if you work with some products. This happens to me with all tha = applications that use Borland BDE. NOTE: I didn't try the last (libpq) version. Regards Miguel Juan ----- Original Message -----=20 From: Peter L. To: pgsql-odbc@postgresql.org Sent: Thursday, July 21, 2005 8:50 PM Subject: [ODBC] Blank varchar and text fields I'm using the latest release version of the driver dll = psqlodbc-08_00_0101=20 with a report writing application called R&R Report writer. When a = report=20 queries the database for data to display, all of the varchar and text = fields come back blank. After doing some research, the only evidence of the = cause=20 that I'm finding is that the cbValueMax for those fields is 1 instead of = the actual length of the text buffer. Can anyone suggest a solution or = where in the code I should look to fix this problem? Log snippets: psqldobc.log conn=3D43202584, query=3D'select * from www.quote where 0 =3D 1' [ fetched 0 rows ] conn=3D43202584, query=3D'select u.nspname, c.relname, a.attname, = a.atttypid,=20 t.typname, a.attnum, a.attlen, a.atttypmod, a.attnotnull, c.relhasrules, = c.relkind from pg_catalog.pg_namespace u, pg_catalog.pg_class c,=20 pg_catalog.pg_attribute a, pg_catalog.pg_type t where u.oid =3D = c.relnamespace and (not a.attisdropped) and c.oid=3D a.attrelid and a.atttypid =3D = t.oid and=20 (a.attnum > 0) and c.relname =3D 'quote' and u.nspname =3D 'www' and = nspname !~ '^pg_' order by u.nspname, c.relname, attnum' [ fetched 72 rows ] ... PGAPI_Columns: = table=3D'quote',field_name=3D'quote_id',type=3D23,name=3D'int4' PGAPI_Columns:=20 table=3D'quote',field_name=3D'account_name',type=3D1043,name=3D'varchar' PGAPI_Columns: = table=3D'quote',field_name=3D'responses',type=3D25,name=3D'text' ... The 2th item was truncated The buffer size =3D 1 and the value is 'Hydro Aluminum Automotive' The 3th item was truncated The buffer size =3D 1 and the value is ' The crimp specification is = 15.9mm or=20 .626 inch. Unfortunataly there is not a 43 series die that goes that=20 tight.' mylog.log [940]READING ATTTYPMOD [940]CI_read_fields: fieldname=3D'quote_id', adtid=3D23, adtsize=3D4, = atttypmod=3D-1 [940]READING ATTTYPMOD [940]CI_read_fields: fieldname=3D'account_name', adtid=3D1043, = adtsize=3D-1,=20 atttypmod=3D80 [940]READING ATTTYPMOD [940]CI_read_fields: fieldname=3D'responses', adtid=3D25, adtsize=3D-1,=20 atttypmod=3D-1 ... [940][SQLDescribeColW][940]PGAPI_DescribeCol: entering.3.. [940]PARSE: DescribeCol: icol=3D2, stmt=3D43230000, stmt->nfld=3D23,=20 stmt->fi=3D43197072 [940]DescribeCol: getting info for icol=3D2 [940]PARSE: fieldtype=3D23, col_name=3D'quote_id', column_size=3D10 [940]describeCol: col 2 fieldname =3D 'quote_id' [940]describeCol: col 2 fieldtype =3D 23 [940]describeCol: col 2 column_size =3D 10 [940]describeCol: col 2 *pfSqlType =3D 4 [940]describeCol: col 2 *pcbColDef =3D 10 [940]describeCol: col 2 *pibScale =3D 0 [940]describeCol: col 2 *pfNullable =3D 1 [940][SQLDescribeColW][940]PGAPI_DescribeCol: entering.16.. [940]PARSE: DescribeCol: icol=3D15, stmt=3D43230000, stmt->nfld=3D35,=20 stmt->fi=3D43196648 [940]DescribeCol: getting info for icol=3D15 [940]PARSE: fieldtype=3D1043, col_name=3D'account_name', = column_size=3D80 [940]describeCol: col 15 fieldname =3D 'account_name' [940]describeCol: col 15 fieldtype =3D 1043 [940]describeCol: col 15 column_size =3D 80 [940]getCharColumnSize: type=3D1043, col=3D15, unknown =3D 0 [940]describeCol: col 15 *pfSqlType =3D -9 [940]describeCol: col 15 *pcbColDef =3D 80 [940]describeCol: col 15 *pibScale =3D 0 [940][SQLDescribeColW][940]PGAPI_DescribeCol: entering.9.. [940]PARSE: DescribeCol: icol=3D8, stmt=3D43230000, stmt->nfld=3D35,=20 stmt->fi=3D43196648 [940]DescribeCol: getting info for icol=3D8 [940]PARSE: fieldtype=3D25, col_name=3D'responses', column_size=3D8190 [940]describeCol: col 8 fieldname =3D 'responses' [940]describeCol: col 8 fieldtype =3D 25 [940]describeCol: col 8 column_size =3D 8190 [940]describeCol: col 8 *pfSqlType =3D -10 [940]describeCol: col 8 *pcbColDef =3D 8190 [940]describeCol: col 8 *pibScale =3D 0 [940]describeCol: col 8 *pfNullable =3D 1 ... [940][SQLBindCol][940]PGAPI_BindCol: entering... [940]**** PGAPI_BindCol: stmt =3D 43230000, icol =3D 1 [940]**** : fCType=3D4 rgb=3D18a490 valusMax=3D4 pcb=3D16de88 [940]extend_getdata_info: entering ... self=3D43230348, = gdata_allocated=3D17,=20 num_columns=3D18 [940]exit extend_gdata_info [940] bound buffer[17] =3D 1614992 [940][SQLBindCol][940]PGAPI_BindCol: entering... [940]**** PGAPI_BindCol: stmt =3D 43230000, icol =3D 2 [940]**** : fCType=3D1 rgb=3D12d564 valusMax=3D1 pcb=3Dcc008 [940]extend_getdata_info: entering ... self=3D43230348, = gdata_allocated=3D6,=20 num_columns=3D7 [940]exit extend_gdata_info [940] bound buffer[6] =3D 1234276 [940]**** PGAPI_BindCol: stmt =3D 43230000, icol =3D 3 [940]**** : fCType=3D1 rgb=3D18a574 valusMax=3D16 pcb=3D16e088 [940]extend_getdata_info: entering ... self=3D43230348, = gdata_allocated=3D20,=20 num_columns=3D21 [940]exit extend_gdata_info [940] bound buffer[20] =3D 1615220 Start your day with Yahoo! - make it your home page=20 ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq