knowledge-database (beta)

Current group: pgsql.bugs

BUG #1422: ODBC SQLTables SQL_ALL_TABLE_TYPES no resultset

BUG #1422: ODBC SQLTables SQL_ALL_TABLE_TYPES no resultset  
Farid Zidan
From:Farid Zidan
Subject:BUG #1422: ODBC SQLTables SQL_ALL_TABLE_TYPES no resultset
Date:Wed, 19 Jan 2005 23:56:30 GMT

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
   

Copyright © 2006 knowledge-database   -   All rights reserved