Skip site navigation (1) Skip section navigation (2)

BUG #1422: ODBC SQLTables SQL_ALL_TABLE_TYPES no resultset

From: "Farid Zidan" <cpp256(at)netscape(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #1422: ODBC SQLTables SQL_ALL_TABLE_TYPES no resultset
Date: 2005-01-19 23:56:30
Message-ID: 200501192356.j0JNuUfK006587@developer.pgadmin.org (view raw or flat)
Thread:
Lists: pgsql-bugs
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.)

Responses

pgsql-bugs by date

Next:From: Farid ZidanDate: 2005-01-20 00:05:12
Subject: BUG #1423: ODBC SQLTables SQL_ALL_CATALOGS and SQL_ALL_SCHEMAS options don't work
Previous:From: Terry WilliamsDate: 2005-01-19 22:13:45
Subject: BUG #1421: Will not install in TS

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group