pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: pgsql-odbc@lists.postgresql.org
Subject: Re: SQLExecDirectW returns SQL_SUCCESS even if sql finishes with error
Date: Thu, 1 Nov 2018 10:01:20 +0100
Message-ID: <e8a014cd-38d1-13f8-21f0-325fa5f3ab9e@ladisch.de> (raw)
In-Reply-To: <EE586BE92A4AFB45B03310C2A0C0565D6D0F1FF0@G01JPEXMBKW03>
References: <EE586BE92A4AFB45B03310C2A0C0565D6D0EFC17@G01JPEXMBKW03>
	<021b26ab-47ab-a282-72ca-d770d8573dd7@dream.email.ne.jp>
	<EE586BE92A4AFB45B03310C2A0C0565D6D0F1FF0@G01JPEXMBKW03>

Takahashi, Ryohei wrote:
> Anyway, I think it is a problem that SQLExecDirectW() returns SQL_SUCCESS even if sql finishes with error.

When client_min_messages set that high, the server never reports the
error.  So the ODBC driver cannot do much about it; at best, it could
report something like "I do not know the status", but that is not
actually possible in the ODBC API.

> He wanted to reduce server logs later and set ... client_min_messages = fatal.

Setting "client_min_messages = fatal" literally means "I do not want to
know about normal errors."

This is an error in the documentation.
I've submitted a bug report: <https://www.postgresql.org/message-id/flat/15479-ef0f4cc2fd995ca2%40postgresql.org;


Regards,
Clemens




view thread (10+ messages)  latest in thread

Message-ID: <e8a014cd-38d1-13f8-21f0-325fa5f3ab9e@ladisch.de>
Permalink:  ../e8a014cd-38d1-13f8-21f0-325fa5f3ab9e@ladisch.de/
Also on:    postgresql.org/message-id/e8a014cd-38d1-13f8-21f0-325fa5f3ab9e@ladisch.de

 · 

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: clemens@ladisch.de
  Subject: Re: SQLExecDirectW returns SQL_SUCCESS even if sql finishes with error
  In-Reply-To: <e8a014cd-38d1-13f8-21f0-325fa5f3ab9e@ladisch.de>
  References: <EE586BE92A4AFB45B03310C2A0C0565D6D0EFC17@G01JPEXMBKW03> <021b26ab-47ab-a282-72ca-d770d8573dd7@dream.email.ne.jp> <EE586BE92A4AFB45B03310C2A0C0565D6D0F1FF0@G01JPEXMBKW03> <e8a014cd-38d1-13f8-21f0-325fa5f3ab9e@ladisch.de>

* 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