From c39e695f601d280e281f17e7884a0bf1b09acca0 Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue Date: Tue, 13 Nov 2018 20:04:05 +0900 Subject: [PATCH] Fix a bug that SQLSpecialColumns() returns oid/xmin incorrectly when a table does not exist. Patch by Quan Zongliang. --- info.c | 3 +++ 1 file changed, 3 insertions(+) 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, -- 2.39.5