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-05 08:20:57
Message-ID: 52da143b-49ee-bf17-61db-f75fad365dd3@dream.email.ne.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Hi Daniil,
On 2017/02/05 17:06, Daniil Megrabyan wrote:
>> 5 февр. 2017 г., в 10:46, Inoue, Hiroshi <h-inoue(at)dream(dot)email(dot)ne(dot)jp> написал(а):
>>
>> Oh nice.
>> Could you apply an attached patch and try?
> Here w go! errmsg='PQprepare failed with memory error?'

Hmm, strange.
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.

regards,
Hiroshi Inoue||

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Daniil Megrabyan 2017-02-05 08:30:15 Re: [HY000] no error information; Error while preparing parameters
Previous Message Daniil Megrabyan 2017-02-05 08:06:29 Re: [HY000] no error information; Error while preparing parameters