Re: [HY000] no error information; Error while preparing parameters

From: "Inoue, Hiroshi" <h-inoue(at)dream(dot)email(dot)ne(dot)jp>
To: Daniil Megrabyan <danil(dot)megrabjan(at)gmail(dot)com>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: [HY000] no error information; Error while preparing parameters
Date: 2017-02-08 07:54:25
Message-ID: 4855d90b-afd7-2801-140d-769cfbbe66b7@dream.email.ne.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Hi Daniil.

On 2017/02/06 23:20, Daniil Megrabyan wrote:
>> 5 февр. 2017 г., в 23:58, Inoue, Hiroshi <h-inoue(at)dream(dot)email(dot)ne(dot)jp> написал(а):
>>
>> On 2017/02/05 22:03, Inoue, Hiroshi wrote:
>>>
>>> On 2017/02/05 17:30, Daniil Megrabyan wrote:
>>>>> 5 февр. 2017 г., в 11:20, Inoue, Hiroshi <h-inoue(at)dream(dot)email(dot)ne(dot)jp> написал(а):
>>>>>
>>>>> This means
>>>>> pgres = PQprepare(conn->pqconn, plan_name, query, num_params, paramTypes);
>>>>> returns a null pointer.
>>>>> https://www.postgresql.org/docs/9.6/static/libpq-exec.html says
>>>>> Returns a PGresult pointer or possibly a null pointer. A non-null pointer will generally be returned except in out-of-memory conditions
>>>>> or serious errors such as inability to send the command to the server.
>>>> I believe, you can reproduce by your own.
>>> I tried on Windows and Linux but can't reproduce the case.
>>> I have no mac Environment unfortunately.
>> I recommend you to check the server log.
>> I now doubt your program really calls PQprepare() in libpq.
> I have moved everything to Ubuntu and can confirm that no errors are appeared.
> I’m wondering how it will be on other machines from BSD stack like FreeBSD.

Could you try debug using lldb?

regards,
Hiroshi Inoue

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message Jacobo Sánchez 2017-02-13 16:06:15 Informatica and SSL connections
Previous Message Adrian Klaver 2017-02-07 15:52:26 Re: [HY000] no error information; Error while preparing parameters