Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bKSXn-00082D-TG for pgsql-odbc@arkaria.postgresql.org; Tue, 05 Jul 2016 15:45:52 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bKSXn-000397-G4 for pgsql-odbc@arkaria.postgresql.org; Tue, 05 Jul 2016 15:45:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bKSXQ-0002kj-Us for pgsql-odbc@postgresql.org; Tue, 05 Jul 2016 15:45:29 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bKSX9-0004gw-H2 for pgsql-odbc@postgresql.org; Tue, 05 Jul 2016 15:45:28 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 451B720372; Tue, 5 Jul 2016 11:45:09 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute7.internal (MEProxy); Tue, 05 Jul 2016 11:45:09 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=IRt129fCrxM6xyPZSRLPcaDDjnw=; b=TObg3Q JkbSpS2ts0QlskotIDXBhy7wDJgBIz/Nb/TTllrewfp+gM4GaF7yLwrwXcxr9MXO 7t2Lr2woY/vFteVnC3vUa5r9v3QALej+1VZgGG6A/1eSHx9w1ouDmAjZPHWBiIg2 Jnx4VMGH7wKe0pTPAw+Ls5aYYCvIiLYAENkeM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=IRt129fCrxM6xyP ZSRLPcaDDjnw=; b=DWlNuKMgBm2sAFipSgfxholtjpbGDCdXZAtBW3/G1ta7wij 7qlxm4v+XmISt0A2nxbAIu/Zz3Hx7UWmFZpdu0FeW6upjOHofOSHZY7x7QinH43l gvRBFQFV7TKRA0JU6hjrTIPdDpGPtMEBOlHY3amTn//nVbbxoHnfTf226VAA= X-Sasl-enc: pXlUHcGnziC/XMaeIAjO5kx+vk0+66eWPXcdoNfEHuhF 1467733508 Received: from killi.site (c-73-225-242-52.hsd1.wa.comcast.net [73.225.242.52]) by mail.messagingengine.com (Postfix) with ESMTPA id C41B5CC01D; Tue, 5 Jul 2016 11:45:07 -0400 (EDT) Subject: Re: How to get correct error message before logging to database To: Andrus , pgsql-odbc@postgresql.org References: <6BCE831703094A8287071F2E5DAB4C8C@dell2> <292539c2-5a39-0b56-fb9f-2ec2e13b0674@aklaver.com> From: Adrian Klaver Message-ID: <48fa3b3c-462c-2b2d-7dc9-c0f08883db5e@aklaver.com> Date: Tue, 5 Jul 2016 08:45:06 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1257; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org On 07/05/2016 07:50 AM, Andrus wrote: > Hi! > >> What application is actually throwing the error? > > Visual FoxPro. > It uses message returned from odbc using AERROR() function. > >> Is the above a direct quote or a translation? > > It is direct quote. Copied from windows messagebox using Ctrl+C > >> I ask because I do not find it in the 09.05.0300 source. > > Maybe Windows ODBC or VFP cannot retrieve error message and thus return > this. Likely given that VFP is past end-of-life. > >> Earlier versions of drivers returned correct error message. >> Which version(s) exactly. > > 09.00.0101 and previous versions. That is many versions past. The only thing I can think of at the moment is: https://odbc.postgresql.org/docs/release.html psqlODBC 09.05.0100 Release Changes: Use libpq for all communication with the server Previously, libpq was only used for authentication. Using it for all communication lets us remove a lot of duplicated code. libpq is now required for building or using libpq. You might try the version immediately preceding the above: psqlODBC 09.03.0400 to see if you get the old behavior or new. > >> What message did they return? > > They returned messages like: > > FATAL: password authentication failed for user "xxx" > > fe_sendauth: no password supplied > > could not translate host name "xxxxx" to address: Unknown server error > > > After logged in normal messages appear. > > Andrus. -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc