Unix Technical Forum

BUG #1422: ODBC SQLTables SQL_ALL_TABLE_TYPES no resultset

This is a discussion on BUG #1422: ODBC SQLTables SQL_ALL_TABLE_TYPES no resultset within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 1422 Logged by: Farid Zidan Email address: cpp256@netscape.net PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 09:28 AM
Farid Zidan
 
Posts: n/a
Default BUG #1422: ODBC SQLTables SQL_ALL_TABLE_TYPES no resultset


The following bug has been logged online:

Bug reference: 1422
Logged by: Farid Zidan
Email address: cpp256@netscape.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

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 09:34 AM
Bruce Momjian
 
Posts: n/a
Default Re: BUG #1422: ODBC SQLTables SQL_ALL_TABLE_TYPES no resultset


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@netscape.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@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:05 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com