pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Quan Zongliang <zongliang.quan@postgresdata.com>
To: pgsql-odbc@postgresql.org
Subject: ODBC SQLSpecialColumns bugfix
Date: Tue, 13 Nov 2018 08:22:04 +0800
Message-ID: <75e40275-9beb-ab2a-04e5-fe84c20599ce@postgresdata.com> (raw)

hi, all

odbc patch attached.

if a table does not exist,
SQLSpecialColumns returns oid/xmin incorrectly.

--
Quan Zongliang

Attachments:

info.c.patch (text/plain, 374B) download 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,

view thread (2+ messages)  latest in thread

Message-ID: <75e40275-9beb-ab2a-04e5-fe84c20599ce@postgresdata.com>
Permalink:  ../75e40275-9beb-ab2a-04e5-fe84c20599ce@postgresdata.com/
Also on:    postgresql.org/message-id/75e40275-9beb-ab2a-04e5-fe84c20599ce@postgresdata.com

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: zongliang.quan@postgresdata.com
  Subject: Re: ODBC SQLSpecialColumns bugfix
  In-Reply-To: <75e40275-9beb-ab2a-04e5-fe84c20599ce@postgresdata.com>
  References: <75e40275-9beb-ab2a-04e5-fe84c20599ce@postgresdata.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox