Best way of retrieving tablename from a query ? - Mailing list pgsql-odbc

From lothar.behrens@lollisoft.de
Subject Best way of retrieving tablename from a query ?
Date
Msg-id 42DA291B.7581.89AC3B@localhost
Whole thread Raw
List 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




pgsql-odbc by date:

Previous
From: Amarsh M
Date:
Subject: MFC issues with ODBC
Next
From: "Anoop Kumar"
Date:
Subject: Re: Leak repairs