Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1caqLx-0003BN-8b for pgsql-odbc@arkaria.postgresql.org; Mon, 06 Feb 2017 20:57:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1caqLw-0004ao-Ik for pgsql-odbc@arkaria.postgresql.org; Mon, 06 Feb 2017 20:57:36 +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 1caqLw-0004ai-7G for pgsql-odbc@postgresql.org; Mon, 06 Feb 2017 20:57:36 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1caqLr-0007wI-Qq for pgsql-odbc@postgresql.org; Mon, 06 Feb 2017 20:57:35 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 1C7F020691; Mon, 6 Feb 2017 15:57:30 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Mon, 06 Feb 2017 15:57:30 -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=rspKwxtd2JxAMet 2hVg39TSY+Vw=; b=V6twcqmkEhb62VxTCF02wKgSv+GGg7Uyk2T2IV5xfzyHOEc sXbmsU0Z6aqvi2Xn9twl8cwicJ0Wn8SzzMZKq8d15+Y86FRK66H4f5Y3sKxplti/ qekI9Dawguiqi3U1izcWHkqkcGykPQx87jsjAd6U35T2mEM8Sc+XSRxayxNk= 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=rspKwxtd2JxAMet2hVg39TSY+Vw=; b=bybxwZGEDYDFx1nCe8sb EqiZqpAWfS6tl4oAevJeGoVcrMBeTr35Tj7tRESYDYEUkLAxTYg978eG5opnmarZ PvRdgTnzrM+nlKdvztX8XiGrPthOBJSKGQxujWB6jNSg5pOw/ELJXylJ4+z1o6fc X2kvmBuFWIGvsBH7S5aQmdI= X-ME-Sender: X-Sasl-enc: 5nSduvpAb9L92s+Z8M9e1r1ltiEcfnfyjNHtWcRd3+hC 1486414649 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 97E17245C8; Mon, 6 Feb 2017 15:57:29 -0500 (EST) Subject: Re: [HY000] no error information; Error while preparing parameters To: 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> <00e180dc-bef6-ffad-7486-1b16bdb167b1@aklaver.com> <959A13E2-FB1C-41D6-A07D-BD52F694FE03@gmail.com> <57f9b541-ad4f-d9a1-f499-c194d889d432@aklaver.com> Cc: pgsql-odbc From: Adrian Klaver Message-ID: <9d708bb7-99fd-b182-2869-6c694b1fbcbf@aklaver.com> Date: Mon, 6 Feb 2017 12:57:28 -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: 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/06/2017 10:48 AM, Daniil Megrabyan wrote: > >> 6 февр. 2017 г., в 18:19, Adrian Klaver написал(а): >> >>>>> 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? >> >> Is there more then one version of libpq? > There are some old versions. > > bash-3.2$ ls -la /usr/local/Cellar/postgresql/ > total 0 > drwxr-xr-x 5 danilabagroff admin 170 2 ноя 22:53 . > drwxr-xr-x 35 danilabagroff admin 1190 17 ноя 17:55 .. > drwxr-xr-x 11 danilabagroff admin 374 15 янв 2015 9.4.0 > drwxr-xr-x 11 danilabagroff admin 374 29 авг 16:06 9.4.5_2 > drwxr-xr-x 11 danilabagroff admin 374 2 ноя 22:53 9.5.4_1 These are Postgres versions. What I am talking about is the libpq library that psqlodbc uses to communicate with Postgres. Should have asked earlier, how did you install psqlodbc? Find the psqlodbc file, on my machine(openSUSE 42.2 psqlodbc built from source) it is: /usr/local/lib64/psqlodbcw.so From this post: http://dba.stackexchange.com/questions/120309/psql-invalid-client-encoding-error-on-os-x-postgresql-9-4-5 on OS X you would need to do: otool -L /path/to/psqlodbcw This should show what libpq it is using. > > But in use just the latest one: > miniBagroff:psqlodbc-09.06.0100 danilabagroff$ ls -la /usr/local/bin/pg_ctl > lrwxr-xr-x 1 danilabagroff admin 39 2 ноя 22:53 /usr/local/bin/pg_ctl -> ../Cellar/postgresql/9.5.4_1/bin/pg_ctl That indicates you are starting the latest Postgres version as your Postgres server. It does not necessarily mean you are using the latest libpq with psqlodbc. > >>>> >>>> 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? >>> This is homebrew(http://brew.sh) version, actual version is >>> >>> bash-3.2$ pg_ctl --version >>> pg_ctl (PostgreSQL) 9.5.4 >>> >>> — Daniil A Megrabyan — >>> >>> >>> >> > > — 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