diff options
author | Hiroshi Inoue | 2002-02-27 01:43:24 +0000 |
---|---|---|
committer | Hiroshi Inoue | 2002-02-27 01:43:24 +0000 |
commit | fc3726b4b97f1ad8cf061e4eab3a7d284ffc10a2 (patch) | |
tree | 416f3b79a8359231af96e8cc8cd32ed04e415ad1 /src/interfaces/odbc/info.c | |
parent | 21f9a654f0d3b7ecb2023797df54abc52da4350e (diff) |
Improve the handling of ODBC escape(a request from Marcelo Aceto).
Change SQLGetFunctions() to reply not yet implemented ODBC 3.0
functions precisely.
Diffstat (limited to 'src/interfaces/odbc/info.c')
-rw-r--r-- | src/interfaces/odbc/info.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/interfaces/odbc/info.c b/src/interfaces/odbc/info.c index 865c8ac7adf..d4fda3670b6 100644 --- a/src/interfaces/odbc/info.c +++ b/src/interfaces/odbc/info.c @@ -9,7 +9,7 @@ * API functions: SQLGetInfo, SQLGetTypeInfo, SQLGetFunctions, * SQLTables, SQLColumns, SQLStatistics, SQLSpecialColumns, * SQLPrimaryKeys, SQLForeignKeys, - * SQLProcedureColumns(NI), SQLProcedures(NI), + * SQLProcedureColumns(NI), SQLProcedures, * SQLTablePrivileges(NI), SQLColumnPrivileges(NI) * * Comments: See "notice.txt" for copyright and license information. @@ -3783,6 +3783,8 @@ PGAPI_TablePrivileges( extend_bindings(stmt, result_cols); /* set the field names */ + stmt->manual_result = TRUE; + stmt->result = QR_Constructor(); QR_set_num_fields(stmt->result, result_cols); QR_set_field_info(stmt->result, 0, "TABLE_CAT", PG_TYPE_TEXT, MAX_INFO_STRING); QR_set_field_info(stmt->result, 1, "TABLE_SCHEM", PG_TYPE_TEXT, MAX_INFO_STRING); |