Re: ODBC v08.02.0100

From: Hiroshi Inoue <inoue(at)tpf(dot)co(dot)jp>
To: luiz <luiz(at)planit(dot)com(dot)br>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: ODBC v08.02.0100
Date: 2006-08-31 21:13:19
Message-ID: 44F750EF.80605@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

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

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message Mark Morgan Lloyd 2006-08-31 21:19:48 Re: Latest ODBC driver?
Previous Message greg.campbell 2006-08-31 20:56:07 Re: ODBC v08.02.0100