X-Original-To: pgsql-odbc-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 019979FB40B for ; Thu, 31 Aug 2006 18:13:30 -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 15397-10 for ; Thu, 31 Aug 2006 21:13:26 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 1820D9FB3F2 for ; Thu, 31 Aug 2006 18:13:24 -0300 (ADT) Received: (qmail 10839 invoked from network); 1 Sep 2006 06:13:21 +0900 X-Authentication: inoue was authenticated by ftp.tpf.co.jp at 1 Sep 2006 06:13:21 +0900 Received: from unknown (HELO ?192.168.11.3?) (219.61.40.10) by ftp.tpf.co.jp with SMTP; 1 Sep 2006 06:13:21 +0900 Message-ID: <44F750EF.80605@tpf.co.jp> Date: Fri, 01 Sep 2006 06:13:19 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: luiz CC: pgsql-odbc@postgresql.org Subject: Re: ODBC v08.02.0100 References: <44F70B69.26A47A54@telemetry.co.uk> <44F71BC3.9050107@gmx.net> <20060831174220.M69787@planit.com.br> In-Reply-To: <20060831174220.M69787@planit.com.br> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200608/185 X-Sequence-Number: 8149 luiz wrote: > Hi all, > > I make some tests with this new version and i notice a diference in the > behaviour about the structures of tables returned by queries trough this > version and older versions of odbc > > I'm using Visual FoxPro with postgres 8.1.4. > > In previous version all fields are marked to accept null values. > Yes the driver didn't check the nullabilties at all. > In this version (8.02.0100) some fields now don't accept null values, seemed > to me that now use the same definition of source table structure, like this: > > CREATE TABLE test ( > id serial NOT NULL, > fk_test2 int4, > field1 char(3) NOT NULL, > field2 varchar(10), > field3 date ); > > CREATE TABLE test2 ( > id serial NOT NULL, > field4 char(3) NOT NULL, > field5 char(3) ); > > SELECT test.* > , test2.id as id2 > , test2.field4 > , test2.field5 > from test LEFT OUTER JOIN test2 on test.fk_test2 = test2.id; > Oops outer join. It's not easy to correct it unfortunately. It's hard for the driver to kow the structure of queries because the driver doesn't analyze queries fundamentally. regards, Hiroshi Inoue