Re: BUG #1422: ODBC SQLTables SQL_ALL_TABLE_TYPES no resultset

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Farid Zidan <cpp256(at)netscape(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1422: ODBC SQLTables SQL_ALL_TABLE_TYPES no resultset
Date: 2005-02-13 00:19:10
Message-ID: 200502130019.j1D0JAd18398@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


Would you submit a patch against the ODBC sources to fix this? Thanks.

---------------------------------------------------------------------------

Farid Zidan wrote:
>
> The following bug has been logged online:
>
> Bug reference: 1422
> Logged by: Farid Zidan
> Email address: cpp256(at)netscape(dot)net
> PostgreSQL version: 8.0
> Operating system: Windows 20000
> Description: ODBC SQLTables SQL_ALL_TABLE_TYPES no resultset
> Details:
>
> ::SQLTables( hstmt,
> ( SQLCHAR * ) "", // szTableCat,
> ( SQLSMALLINT ) 0, //cbTableCat,
> ( SQLCHAR * ) "", //szTableSchem,
> ( SQLSMALLINT ) 0, //cbTableSchem,
> ( SQLCHAR * ) "", //szTableName,
> ( SQLSMALLINT ) 0, //cbTableName,
> ( SQLCHAR * ) SQL_ALL_TABLE_TYPES, //szTableType,
> ( SQLSMALLINT ) sizeof( SQL_ALL_TABLE_TYPES) );
>
> get result code 100 ( SQL_NO_DATA_FOUND )
>
> ODBC documentation for SQLTables:
> If TableType is SQL_ALL_TABLE_TYPES and CatalogName, SchemaName, and
> TableName are empty strings, the result set contains a list of valid table
> types for the data source. (All columns except the TABLE_TYPE column contain
> NULLs.)
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Bruce Momjian 2005-02-14 05:09:42 Re: BUG #1479: minor sintax
Previous Message Bruce Momjian 2005-02-13 00:16:48 Re: BUG #1415: odbc driver SQLGetInfo SQL_CATALOG_TERM returns