Re: ODBC - adding missing FROM clause entry - Mailing list pgsql-odbc

From Tambet Matiisen
Subject Re: ODBC - adding missing FROM clause entry
Date
Msg-id 81132473206F3A46A72BD6116E1A06AE1B14B9@black.aprote.com
Whole thread Raw
In response to ODBC - adding missing FROM clause entry  (Martin_Hurst@dom.com)
Responses Re: ODBC - adding missing FROM clause entry
List pgsql-odbc
This is quite odd feature in PostgreSQL. Try this:

select pg_database.datname from pg_user;

You will get all database names, each repeated by number of users and a note:

NOTICE:  Adding missing FROM-clause entry for table "pg_database"

You see, in SELECT you referred a table that is not in FROM clause and PostgreSQL is adding it automatically! Seems
prettyconfusing to me, but I didn't dig any further, why is it needed or when it this was included. 

  Tambet

pgsql-odbc by date:

Previous
From: "Hiroshi Inoue"
Date:
Subject: Re: ODBC - adding missing FROM clause entry
Next
From: "Dave Page"
Date:
Subject: SQLGetInfo Bug