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 2C76C52806 for ; Tue, 17 May 2005 19:12:21 -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 12404-02 for ; Tue, 17 May 2005 22:12:20 +0000 (GMT) Received: from linux.dunaweb.hu (linux.dunaweb.hu [62.77.196.1]) by svr1.postgresql.org (Postfix) with ESMTP id A7F7A52845 for ; Tue, 17 May 2005 19:12:19 -0300 (ADT) Received: from localhost (linux.dunaweb.hu [127.0.0.1]) by linux.dunaweb.hu (Postfix) with ESMTP id 64E518E0378 for ; Wed, 18 May 2005 00:12:20 +0200 (CEST) Received: from linux.dunaweb.hu ([127.0.0.1]) by localhost (linux.dunaweb.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08276-05 for ; Wed, 18 May 2005 00:12:19 +0200 (CEST) Received: from [193.226.227.37] (wl-193.226.227-37-szolnok.dunaweb.hu [193.226.227.37]) by linux.dunaweb.hu (Postfix) with ESMTP id DE0748E036F for ; Wed, 18 May 2005 00:12:18 +0200 (CEST) Message-ID: <428A6FA8.9050109@dunaweb.hu> Date: Wed, 18 May 2005 00:26:48 +0200 From: Zoltan Boszormenyi User-Agent: Mozilla Thunderbird 1.0.2-1.3.3 (X11/20050513) X-Accept-Language: hu-hu, hu, en-us, en MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Re: PsqlODBC problem with complex query References: <428A6A51.2070304@dunaweb.hu> <428A6E28.5070508@dunaweb.hu> In-Reply-To: <428A6E28.5070508@dunaweb.hu> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at dunaweb.hu X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200505/40 X-Sequence-Number: 5343 Zoltan Boszormenyi írta: >> The report is correct with both unixODBC PostgreSQL drivers but >> contains garbage when used with the official psqlodbc drivers. > > > The "garbage" needs to be clarified. RLIB gets every field as strings > using SQLDescribeCol(). It cannot fetch the result row(s) and the > strings aren't memset()ed in advance. It's getting too late. I meant SQLGetData(). It uses SQLDescribeCol() internally so it knows the field names and they can be referenced later. Best regards, Zoltán Böszörményi