From: Hiroshi Inoue Date: Tue, 13 Nov 2018 11:04:05 +0000 (+0900) Subject: Fix a bug that SQLSpecialColumns() returns oid/xmin incorrectly when a table does... X-Git-Tag: REL-11_00_0000~1 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=c39e695f601d280e281f17e7884a0bf1b09acca0;p=psqlodbc.git Fix a bug that SQLSpecialColumns() returns oid/xmin incorrectly when a table does not exist. Patch by Quan Zongliang. --- diff --git a/info.c b/info.c index 84b0f2a..052f0ae 100644 --- a/info.c +++ b/info.c @@ -2902,6 +2902,9 @@ retry_public_schema: cbSchemaName = SQL_NTS; goto retry_public_schema; } + + SC_set_error(stmt, DESC_BAD_PARAMETER_NUMBER_ERROR, "The specified table does not exist", func); + goto cleanup; } result = PGAPI_BindCol(col_stmt, 1, internal_asis_type,