Re: BUG #5180: How to get only User created tables by using SQLTables() in ODBC - Mailing list pgsql-bugs

From Nikhil Sontakke
Subject Re: BUG #5180: How to get only User created tables by using SQLTables() in ODBC
Date
Msg-id a301bfd90911230458k1a3fb859i929d77d8185e48da@mail.gmail.com
Whole thread Raw
In response to BUG #5180: How to get only User created tables by using SQLTables() in ODBC  ("Jitendra Lenka" <jitendra.lenka@csqldb.com>)
List pgsql-bugs
Hi,

> Please find the code:
> --------------------
> retValue=SQLTables(hstmt, NULL, 0, NULL, 0, NULL, 0, (SQLCHAR*) "TABLE",
> SQL_NTS);
>

You should pass the schemaname to the above call to restrict the
result set to a specific schema. For example:

SQLTables(hstmt, NULL, 0, (SQLCHAR *)"public", SQL_NTS, NULL, 0,
(SQLCHAR*) "TABLE", SQL_NTS);

Regards,
Nikhils
--
http://www.enterprisedb.com

pgsql-bugs by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: Multixact and prepared transactions
Next
From: Robert Haas
Date:
Subject: Re: BUG #5206: wal_sync_method in stock postgresql.conf may be wrong