Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cZfDf-0004pP-MN for pgsql-odbc@arkaria.postgresql.org; Fri, 03 Feb 2017 14:52:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cZfDf-00054v-9d for pgsql-odbc@arkaria.postgresql.org; Fri, 03 Feb 2017 14:52:11 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cZfDI-0004Qb-GF for pgsql-odbc@postgresql.org; Fri, 03 Feb 2017 14:51:48 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cZfDF-0005rG-NB for pgsql-odbc@postgresql.org; Fri, 03 Feb 2017 14:51:47 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 6028B209F8; Fri, 3 Feb 2017 09:51:44 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Fri, 03 Feb 2017 09:51:44 -0500 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-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=gTn1PK57gSk8EE7 uKVshMO0KuZc=; b=RO0DLkBb2Kh2foDtLJ9dIJIe1HcSaqXHWOe6Vx2bC6KEpWr ndx2OeXJFNHvuFmkU35SjoO8HWAIasOZh21KKa/9082qzY40EcXGgQ5hMbcXi/Dl SaxxyfYtaYY3G5c1NaUrs9kLZMP0uWUK/Q5VSwOiO5ASfXHNPN0dDHUY2WUM= 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-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= smtpout; bh=gTn1PK57gSk8EE7uKVshMO0KuZc=; b=j+5lzr6/jy5IXNcs7Jn4 9xW3nNevU1MGLadm2v4p52gyrhAZlzjcVLDg4sDL+tLcKGvoJshmzbFkSUAisqCy gDvRG/1fnzk+I7tLf00UQAswvnEXmYAF2eLvpUVaENoI/wel4vVPQ7Q252u2lNAd ZO2muepIReVCQ+FlPI4M2lw= X-ME-Sender: X-Sasl-enc: FFF6ufXuugVzIxDIXaif2bd8Y8XrIu+oTA1zExibDuoW 1486133504 Received: from [192.168.1.2] (174-21-203-58.tukw.qwest.net [174.21.203.58]) by mail.messagingengine.com (Postfix) with ESMTPA id D111A7E1D1; Fri, 3 Feb 2017 09:51:43 -0500 (EST) Subject: Re: [HY000] no error information; Error while preparing parameters To: Daniil Megrabyan , pgsql-odbc@postgresql.org References: From: Adrian Klaver Message-ID: Date: Fri, 3 Feb 2017 06:51:43 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 02/03/2017 12:06 AM, Daniil Megrabyan wrote: > Hi, > > _Sometimes_ I’m getting very «informative» error message on SQLExecute(). The query is quite easy, but I’m guessing that error comes from the driver(or driver manager though?). What should I check? What does the Postgres server log show? > > My environment: > macOS 10.12 > unixODBC 2.3.4 > psqlodbc 09.05.0400 > PostgreSQL 9.5.4_1 > > Trace: > [ODBC][5368][1486063625.565019][SQLAllocHandle.c][1085] > Exit:[SQL_SUCCESS] > Output Handle = 0x102915800 > [ODBC][5368][1486063625.565280][SQLSetStmtAttr.c][265] > Entry: > Statement = 0x102915800 > Attribute = SQL_ATTR_CURSOR_TYPE > Value = 0x1 > StrLen = 0 > [ODBC][5368][1486063625.565463][SQLSetStmtAttr.c][928] > Exit:[SQL_SUCCESS] > [ODBC][5368][1486063625.565851][SQLPrepare.c][196] > Entry: > Statement = 0x102915800 > SQL = [INSERT INTO Core_Message(channel_id, date, member_id, reply_id) > VALUES(25, '2017-02-02 22:27:05', 4, NULL) > ][length = 109 (SQL_NTS)] > [ODBC][5368][1486063625.565943][SQLPrepare.c][377] > Exit:[SQL_SUCCESS] > [ODBC][5368][1486063625.566442][SQLExecute.c][187] > Entry: > Statement = 0x102915800 > [ODBC][5368][1486063625.566724][SQLExecute.c][357] > Exit:[SQL_ERROR] > DIAG [HY000] no error information; > Error while preparing parameters > > [ODBC][5368][1486063625.567160][SQLFreeHandle.c][381] > Entry: > Handle Type = 3 > Input Handle = 0x102915800 > [ODBC][5368][1486063625.567308][SQLFreeHandle.c][494] > Exit:[SQL_SUCCESS] > > > Thanks in advance. > > Daniil A Megrabyan > — Daniil A Megrabyan — > phone(telegram, whatsapp, viber) : +79151762470 | skype: danil.megrabyan > > > -- 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