pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Inoue, Hiroshi <h-inoue@dream.email.ne.jp>
To: Daniil Megrabyan <danil.megrabjan@gmail.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: [HY000] no error information; Error while preparing parameters
Date: Sun, 5 Feb 2017 13:49:32 -0800
Message-ID: <00e180dc-bef6-ffad-7486-1b16bdb167b1@aklaver.com> (raw)
In-Reply-To: <7b18ca09-43ff-d3a4-dbaf-b3a974b84f1d@dream.email.ne.jp>
References: <AA343437-E0AD-4939-9B7E-C539E8AA392D@gmail.com>
	<8f2bbaf9-1cd1-a6ec-997d-6b97a06e0bf4@dream.email.ne.jp>
	<FBB46514-C539-4929-8FB1-B75E2E895FF7@gmail.com>
	<a0be924d-03f2-267e-b83e-505ca95f531f@dream.email.ne.jp>
	<73DCCC79-F070-4E60-BFE9-C8E700850986@gmail.com>
	<bea7518f-ef0e-b385-e6f1-fdf7bfc531e2@dream.email.ne.jp>
	<2D1939A7-F3E8-4936-B94E-094B9B455E11@gmail.com>
	<f657925b-9a5c-7aee-3cfd-f59496b555ad@dream.email.ne.jp>
	<967DCD5F-8661-4B4B-B512-6AE65E281DD4@gmail.com>
	<52da143b-49ee-bf17-61db-f75fad365dd3@dream.email.ne.jp>
	<66CB48EB-4358-46FF-8E0C-2448519E11E4@gmail.com>
	<dcaf2976-5309-cc00-991d-a83c62cf7833@dream.email.ne.jp>
	<7b18ca09-43ff-d3a4-dbaf-b3a974b84f1d@dream.email.ne.jp>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

On 02/05/2017 12:58 PM, Inoue, Hiroshi wrote:
> 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@dream.email.ne.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.

Hmm, this got me to wondering.

If I recall OS X ships with its own version of Postgres.

Can you search for what libpq versions you might have installed on your 
machine?

Also from your first post you have:

PostgreSQL 9.5.4_1

This is not Postgres community version number(the _1 part), so where did 
you get it and/or install it?

>
> regards,
> Hiroshi Inoue
>
>> regards,
>> Hiroshi Inoue
>>
>>>
>>> CREATE TABLE core_message (
>>>     id int8 NOT NULL DEFAULT nextval('core_message_id_seq'::regclass),
>>>     channel_id int8 NOT NULL,
>>>     date timestamp(6) NOT NULL,
>>>     member_id int8 NOT NULL,
>>>     reply_id int8
>>> )
>>> WITH (OIDS=FALSE);
>>>
>>> CREATE TABLE core_textmessage (
>>>     message_id int8 NOT NULL,
>>>     text text NOT NULL
>>> )
>>> WITH (OIDS=FALSE);
>>>
>>> INSERT INTO core_textmessage(message_id, text) VALUES(1,
>>> ‘Мультибайт’) < This UTF8 text does the «magic» and environment
>>> becomes unusable
>>> INSERT INTO core_message(channel_id, date, member_id, reply_id)
>>> VALUES(25, '2017-02-05 11:01:34', 4, NULL)
>>>
>>> — 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: <00e180dc-bef6-ffad-7486-1b16bdb167b1@aklaver.com>
Permalink:  ../00e180dc-bef6-ffad-7486-1b16bdb167b1@aklaver.com/
Also on:    postgresql.org/message-id/00e180dc-bef6-ffad-7486-1b16bdb167b1@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, h-inoue@dream.email.ne.jp, danil.megrabjan@gmail.com
  Subject: Re: [HY000] no error information; Error while preparing parameters
  In-Reply-To: <00e180dc-bef6-ffad-7486-1b16bdb167b1@aklaver.com>
  References: <AA343437-E0AD-4939-9B7E-C539E8AA392D@gmail.com> <8f2bbaf9-1cd1-a6ec-997d-6b97a06e0bf4@dream.email.ne.jp> <FBB46514-C539-4929-8FB1-B75E2E895FF7@gmail.com> <a0be924d-03f2-267e-b83e-505ca95f531f@dream.email.ne.jp> <73DCCC79-F070-4E60-BFE9-C8E700850986@gmail.com> <bea7518f-ef0e-b385-e6f1-fdf7bfc531e2@dream.email.ne.jp> <2D1939A7-F3E8-4936-B94E-094B9B455E11@gmail.com> <f657925b-9a5c-7aee-3cfd-f59496b555ad@dream.email.ne.jp> <967DCD5F-8661-4B4B-B512-6AE65E281DD4@gmail.com> <52da143b-49ee-bf17-61db-f75fad365dd3@dream.email.ne.jp> <66CB48EB-4358-46FF-8E0C-2448519E11E4@gmail.com> <dcaf2976-5309-cc00-991d-a83c62cf7833@dream.email.ne.jp> <7b18ca09-43ff-d3a4-dbaf-b3a974b84f1d@dream.email.ne.jp> <00e180dc-bef6-ffad-7486-1b16bdb167b1@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