Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1caUgk-0000QK-0V for pgsql-odbc@arkaria.postgresql.org; Sun, 05 Feb 2017 21:49:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1caUgj-0001uO-Bh for pgsql-odbc@arkaria.postgresql.org; Sun, 05 Feb 2017 21:49:37 +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 1caUgi-0001u8-Nl for pgsql-odbc@postgresql.org; Sun, 05 Feb 2017 21:49:36 +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 1caUgg-0004fA-40 for pgsql-odbc@postgresql.org; Sun, 05 Feb 2017 21:49:35 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id A23EB207E4; Sun, 5 Feb 2017 16:49:33 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Sun, 05 Feb 2017 16:49:33 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h=cc :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=oIEli+ywNUCz3pc d29WjJYSRs8U=; b=fFub61wV5Lb6t+hfjVPsZTOy4SxA6JGbEDFmFWzbMa2Irq3 HOEHnZ6cDU6q+xNXMo1XM3HwIeIQjAQSdhZFVVihqtKKaPCoOPgnN5OnOACQOl41 hJ0Te6DliuOMDdiS3/DkElVdw5uQvLWHbKm/0RgIS2EnPjhqMpY6dB4mIwsI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=oIEli+ywNUCz3pcd29WjJYSRs8U=; b=BrHMJe8xlKMsDjq+pXpN LWKfEkmmqged5sJVxbiLVmFUpsvrqLGiEjCQ3vx2Ixq3WKF8wQTZWVBW48I4irfp cLlKS19/ojgJ/25UrSsn751PPGbrcTvqzhXW9k1QsCNGHS8x5hYMEpba+04R1l+J 8DtaWZGTRoamFVjpW9cIgEE= X-ME-Sender: X-Sasl-enc: 2aRbmHVx9YGSY4le3NcRHvShhKEU083Y5BUUehzo9Hk6 1486331373 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 13994245A4; Sun, 5 Feb 2017 16:49:32 -0500 (EST) Subject: Re: [HY000] no error information; Error while preparing parameters To: "Inoue, Hiroshi" , Daniil Megrabyan References: <8f2bbaf9-1cd1-a6ec-997d-6b97a06e0bf4@dream.email.ne.jp> <73DCCC79-F070-4E60-BFE9-C8E700850986@gmail.com> <2D1939A7-F3E8-4936-B94E-094B9B455E11@gmail.com> <967DCD5F-8661-4B4B-B512-6AE65E281DD4@gmail.com> <52da143b-49ee-bf17-61db-f75fad365dd3@dream.email.ne.jp> <66CB48EB-4358-46FF-8E0C-2448519E11E4@gmail.com> <7b18ca09-43ff-d3a4-dbaf-b3a974b84f1d@dream.email.ne.jp> Cc: pgsql-odbc@postgresql.org From: Adrian Klaver Message-ID: <00e180dc-bef6-ffad-7486-1b16bdb167b1@aklaver.com> Date: Sun, 5 Feb 2017 13:49:32 -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: <7b18ca09-43ff-d3a4-dbaf-b3a974b84f1d@dream.email.ne.jp> 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/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 >>>> написал(а): >>>> >>>> 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