Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gI8r7-00016M-C8 for pgsql-odbc@arkaria.postgresql.org; Thu, 01 Nov 2018 09:01:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gI8r4-00055C-1m for pgsql-odbc@arkaria.postgresql.org; Thu, 01 Nov 2018 09:01:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gI8r3-000555-3N for pgsql-odbc@lists.postgresql.org; Thu, 01 Nov 2018 09:01:29 +0000 Received: from webclient5.webclient5.de ([136.243.32.184]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gI8qz-0008Qb-1Q for pgsql-odbc@lists.postgresql.org; Thu, 01 Nov 2018 09:01:27 +0000 Received: from [10.1.2.4] (unknown [94.101.37.79]) by webclient5.webclient5.de (Postfix) with ESMTPSA id E26C3558393A for ; Thu, 1 Nov 2018 10:01:21 +0100 (CET) From: Clemens Ladisch Subject: Re: SQLExecDirectW returns SQL_SUCCESS even if sql finishes with error To: pgsql-odbc@lists.postgresql.org References: <021b26ab-47ab-a282-72ca-d770d8573dd7@dream.email.ne.jp> Message-ID: Date: Thu, 1 Nov 2018 10:01:20 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=iso-2022-jp Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.99.4 at webclient5 X-Virus-Status: Clean List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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: Regards, Clemens