pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Daniil Megrabyan <danil.megrabjan@gmail.com>
To: pgsql-odbc@postgresql.org
Subject: Re: [HY000] no error information; Error while preparing parameters
Date: Fri, 3 Feb 2017 06:51:43 -0800
Message-ID: <e0bae9e3-5ff7-95cd-1388-5cf006c340f7@aklaver.com> (raw)
In-Reply-To: <AA343437-E0AD-4939-9B7E-C539E8AA392D@gmail.com>
References: <AA343437-E0AD-4939-9B7E-C539E8AA392D@gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

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



view thread (20+ messages)  latest in thread

Message-ID: <e0bae9e3-5ff7-95cd-1388-5cf006c340f7@aklaver.com>
Permalink:  ../e0bae9e3-5ff7-95cd-1388-5cf006c340f7@aklaver.com/
Also on:    postgresql.org/message-id/e0bae9e3-5ff7-95cd-1388-5cf006c340f7@aklaver.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: adrian.klaver@aklaver.com, danil.megrabjan@gmail.com
  Subject: Re: [HY000] no error information; Error while preparing parameters
  In-Reply-To: <e0bae9e3-5ff7-95cd-1388-5cf006c340f7@aklaver.com>
  References: <AA343437-E0AD-4939-9B7E-C539E8AA392D@gmail.com> <e0bae9e3-5ff7-95cd-1388-5cf006c340f7@aklaver.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