Re: MS Access / Postgres ODBC / Outer joins

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Glen Parker <glenebob(at)nwlink(dot)com>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: MS Access / Postgres ODBC / Outer joins
Date: 2005-10-06 22:19:23
Message-ID: 26259.1128637163@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Glen Parker <glenebob(at)nwlink(dot)com> writes:
> Access will rewrite it to this...

> SELECT t1.field1, t2.field2 FROM {oj t1 LEFT OUTER JOIN t2 on t1.field1
> = t2.field2 WHERE t1.field3 = 'some value' };

> Note the "{oj" after "FROM", and the closing "}" at the end of the
> query. What the heck is that all about? Has anybody seen this before?

Yeah, I think this is actually in the ODBC standard: the ODBC driver is
supposed to recognize that and convert it to whatever outer join syntax
the database likes. Not sure if our ODBC driver does so --- you'd be
better off asking about this on pgsql-odbc.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jim C. Nasby 2005-10-06 22:20:20 Re: PostgreSQL Gotchas
Previous Message Jim C. Nasby 2005-10-06 22:18:03 Re: PostgreSQL 8.1 vs. MySQL 5.0?