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 364B58B9E41 for ; Mon, 7 Feb 2005 08:38:02 +0000 (GMT) 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 16682-03 for ; Mon, 7 Feb 2005 08:37:51 +0000 (GMT) Received: from gizmo06bw.bigpond.com (gizmo06bw.bigpond.com [144.140.70.41]) by svr1.postgresql.org (Postfix) with SMTP id 3A4A68B9E83 for ; Mon, 7 Feb 2005 08:37:50 +0000 (GMT) Received: (qmail 5522 invoked from network); 7 Feb 2005 08:37:45 -0000 Received: from unknown (HELO bwmam11.bigpond.com) (144.135.24.100) by gizmo06bw.bigpond.com with SMTP; 7 Feb 2005 08:37:45 -0000 Received: from cpe-203-45-190-81.qld.bigpond.net.au ([203.45.190.81]) by bwmam11.bigpond.com(MAM REL_3_4_2a 180/68644817) with SMTP id 68644817; Mon, 07 Feb 2005 18:37:45 +1000 Message-ID: <420728C4.9090700@bigpond.net.au> Date: Mon, 07 Feb 2005 18:37:24 +1000 From: David Brown User-Agent: Mozilla Thunderbird 1.0RC1 (Windows/20041201) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Marco Tamanti Cc: pgsql-odbc@postgresql.org Subject: Re: varchar problem after installing postgresql-8.0.1 on windows References: <000901c50bfc$ef7c1dc0$0200a8c0@Astro> In-Reply-To: <000901c50bfc$ef7c1dc0$0200a8c0@Astro> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.855 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_WHOIS X-Spam-Level: X-Archive-Number: 200502/27 X-Sequence-Number: 4917 I think you'll find you're suffering from other effects of the bug described here: http://gborg.postgresql.org/project/psqlodbc/bugs/bugupdate.php?996 The latest snapshot (8.00.0004) contains the fix. It worked for me, as long as you don't use Memo field types. If the installer doesn't seem to be removing/repairing/upgrading the ODBC driver, check the version by inspecting the properties of psqlodbc.dll in WINNT\system32. Just delete it or overwrite it with the new version. Regards David Marco Tamanti wrote: >Before installing version 8.0.1 of postgresql on windows 2000 SP4, I was >in this situation: > >postgresql 7.3.4 on a linux machine >pgsqlodbc-07_03_0100 >Borland C++Builder 4 updated Pack 1. > >After installing postgresql-8.0.1 on the same machine where I run >C++Builder, I've had a problem with varchar (or character varying): >When I run applications built with c++builder I get the error >": field '' not found.", where >and are appropriate values. >With Database Explorer, I can see that all the information on the tables >are correct and that the fields are there. >If I enter an SQL statement "select * from tablename" the result does >not contain varchar fields. >If I do "select fieldname from tablename" where fieldname is a varchar >field, I get the column with all empty values. > >Using pgadmin none of these problems appear. All queries are ok. > > >The same problem appears even if I connect to the old postgres 7.3.4 on >linux. This, after the installation of the 8.0.1 version. >I've tried to reinstall Windows 2000, C++Builder (now version 5), >pgsqlodbc-07_03_0200 and the old database 7.3.4 on linux was perfectly >responding. After installing postgres 8.0.1 on windows the problem came >out again. > >Even when I remove postgres 8.0.1 the problem persist. >I suppose there's a problem on odbc driver, but I tried to install it >again with no result. I tried to reinstall C++Builder and no result >again. > >Anyone with the same problem? Any solution? > >I'm using SQL_ASCII coding. Most of testing has been done on a >varchar(50) field, not null, storage extended. > >