Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cakAG-00076r-CE for pgsql-odbc@arkaria.postgresql.org; Mon, 06 Feb 2017 14:21:08 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cakAF-0000LX-VY for pgsql-odbc@arkaria.postgresql.org; Mon, 06 Feb 2017 14:21:08 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cakAF-0000LF-BN for pgsql-odbc@postgresql.org; Mon, 06 Feb 2017 14:21:07 +0000 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1cakAB-0007xd-HR for pgsql-odbc@postgresql.org; Mon, 06 Feb 2017 14:21:06 +0000 Received: by mail-wr0-x242.google.com with SMTP id i10so3194038wrb.0 for ; Mon, 06 Feb 2017 06:21:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=HseVZaGLABlhY0nnOrUApzvecqEV0pGVlhI/j5S4mxM=; b=RiPojeVe7q/9vYWVSxbjfFBQFgVfgjEgu8PIfOTTu1CO4eaHWM9B4ZCVvfouAnYX0n Gx98wsjpGKzn8CSINKVTSj93V6iVZKeN9rftg+TDrpi7TSYvzlqgN6SqTY99LxLEkr9Q WBsVUA3JRB3Ev+qitiWw0+bs+s2SYVbNXDTXG5Zf4Mb/uJOjgBGFh86+sNC8HsB5HRp+ aEiV4evMiwNs1LgemnD9ysOhVA4SEWvTT81yvZD72Rp5s8QgKB3Ng8aRb5IQdsZMMwdz sgr+tylFw1zEZf2NRpqPIYi4T1dv7NFYYnhXkagO0CCGgEQ8Al9fvojIP8s/iZ/anLUe safg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=HseVZaGLABlhY0nnOrUApzvecqEV0pGVlhI/j5S4mxM=; b=hD2t+5yhGxkAWXnlvbaFEBb5VRh0BVDHla4ecjFjhq5J6zcRuFK3IkGMOXlJzd8vL6 tYJz1TWyHec3N2twn1aIT/TmtwTDrVBHRxYTttyHFVK+fJV93pPg88rnm9lDuvLfpDvd JIxAE5S7NFjyix09yh3vp6v1CdOEyvyQ/6UE1SzMBRM5SerGIVF1ZOPWe1iS/M/jKKbD XFxgB5LWp8QHRwMsZfjUnVtfJFPFUwOx80M9/4CnAYk2mJ/acABqZowIPvrSZlo39n+A M5vB2ZaYOPkM8G9PyrJXJnab1V1lc36RNM5sZeWMnTyadwjOXWlGauEWaZovW0T/xe7Q KWeg== X-Gm-Message-State: AIkVDXLPSgdv+NyVIenbUfewACpoY3UElX/Ldz0ZvightRLB0pt93CSkB3L6dpzWWELPKw== X-Received: by 10.223.161.222 with SMTP id v30mr10850322wrv.114.1486390861811; Mon, 06 Feb 2017 06:21:01 -0800 (PST) Received: from minibagroff.mega ([88.201.150.44]) by smtp.gmail.com with ESMTPSA id o70sm1740509wrc.20.2017.02.06.06.21.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Feb 2017 06:21:00 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: [HY000] no error information; Error while preparing parameters From: Daniil Megrabyan In-Reply-To: <7b18ca09-43ff-d3a4-dbaf-b3a974b84f1d@dream.email.ne.jp> Date: Mon, 6 Feb 2017 17:20:59 +0300 Cc: pgsql-odbc@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: 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> To: "Inoue, Hiroshi" X-Mailer: Apple Mail (2.3259) X-Pg-Spam-Score: -2.0 (--) 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 > 5 =D1=84=D0=B5=D0=B2=D1=80. 2017 =D0=B3., =D0=B2 23:58, Inoue, Hiroshi =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB(=D0=B0= ): >=20 > On 2017/02/05 22:03, Inoue, Hiroshi wrote: >>=20 >>=20 >> On 2017/02/05 17:30, Daniil Megrabyan wrote: >>>> 5 =D1=84=D0=B5=D0=B2=D1=80. 2017 =D0=B3., =D0=B2 11:20, Inoue, Hiroshi= =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB(=D0= =B0): >>>>=20 >>>> This means >>>> pgres =3D 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 poin= ter 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. >>=20 >> I tried on Windows and Linux but can't reproduce the case. >> I have no mac Environment unfortunately. >=20 > 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 appear= ed.=20 I=E2=80=99m wondering how it will be on other machines from BSD stack like = FreeBSD. =E2=80=94 Daniil A Megrabyan =E2=80=94 --=20 Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc