Best way of retrieving tablename from a query ?

From: lothar(dot)behrens(at)lollisoft(dot)de
To: pgsql-odbc(at)postgresql(dot)org
Subject: Best way of retrieving tablename from a query ?
Date: 2005-07-17 07:47:07
Message-ID: 42DA291B.7581.89AC3B@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Hi,

I have implemented a function to retrieve the table name from a SQL query by analysing
the SQL query string.

Now I tried to use the SQLColumns to do this, because avoiding special handling of joined
or multible tables in a query.

The orginal sample code uses an uninitialized hstmt in it's call, so I assumed, it must be the
statement, that I have created from the orginal query to retrieve the table from.

Is this correct, or is there a better way to do this ?

Thanks Lothar

--
Lothar Behrens | Rapid Prototyping ...
Rosmarinstr 3 |
40235 Düsseldorf | www.lollisoft.de

Browse pgsql-odbc by date

  From Date Subject
Next Message Anoop Kumar 2005-07-18 04:26:11 Re: Leak repairs
Previous Message Amarsh M 2005-07-15 23:10:22 MFC issues with ODBC