pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <inoue@tpf.co.jp>
To: luiz <luiz@planit.com.br>
Cc: pgsql-odbc@postgresql.org
Subject: Re: ODBC v08.02.0100
Date: Fri, 01 Sep 2006 06:13:19 +0900
Message-ID: <44F750EF.80605@tpf.co.jp> (raw)
In-Reply-To: <20060831174220.M69787@planit.com.br>
References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E40154C936@ratbert.vale-housing.co.uk>
	<44F70B69.26A47A54@telemetry.co.uk>
	<44F71BC3.9050107@gmx.net>
	<20060831174220.M69787@planit.com.br>

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




view thread (5+ messages)

Message-ID: <44F750EF.80605@tpf.co.jp>
Permalink:  ../44F750EF.80605@tpf.co.jp/
Also on:    postgresql.org/message-id/44F750EF.80605@tpf.co.jp

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: inoue@tpf.co.jp, luiz@planit.com.br
  Subject: Re: ODBC v08.02.0100
  In-Reply-To: <44F750EF.80605@tpf.co.jp>
  References: <E7F85A1B5FF8D44C8A1AF6885BC9A0E40154C936@ratbert.vale-housing.co.uk> <44F70B69.26A47A54@telemetry.co.uk> <44F71BC3.9050107@gmx.net> <20060831174220.M69787@planit.com.br> <44F750EF.80605@tpf.co.jp>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox