pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Daniil Megrabyan <danil.megrabjan@gmail.com>
Cc: pgsql-odbc <pgsql-odbc@postgresql.org>
Subject: Re: [HY000] no error information; Error while preparing parameters
Date: Mon, 6 Feb 2017 12:57:28 -0800
Message-ID: <9d708bb7-99fd-b182-2869-6c694b1fbcbf@aklaver.com> (raw)
In-Reply-To: <E67A5027-68C4-46BA-932A-C2DD0E8672F4@gmail.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>
	<959A13E2-FB1C-41D6-A07D-BD52F694FE03@gmail.com>
	<57f9b541-ad4f-d9a1-f499-c194d889d432@aklaver.com>
	<E67A5027-68C4-46BA-932A-C2DD0E8672F4@gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>

On 02/06/2017 10:48 AM, Daniil Megrabyan wrote:
>
>> 6 февр. 2017 г., в 18:19, Adrian Klaver <adrian.klaver@aklaver.com> написал(а):
>>

>>>>> 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-...

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



view thread (20+ messages)  latest in thread

Message-ID: <9d708bb7-99fd-b182-2869-6c694b1fbcbf@aklaver.com>
Permalink:  ../9d708bb7-99fd-b182-2869-6c694b1fbcbf@aklaver.com/
Also on:    postgresql.org/message-id/9d708bb7-99fd-b182-2869-6c694b1fbcbf@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, danil.megrabjan@gmail.com
  Subject: Re: [HY000] no error information; Error while preparing parameters
  In-Reply-To: <9d708bb7-99fd-b182-2869-6c694b1fbcbf@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> <959A13E2-FB1C-41D6-A07D-BD52F694FE03@gmail.com> <57f9b541-ad4f-d9a1-f499-c194d889d432@aklaver.com> <E67A5027-68C4-46BA-932A-C2DD0E8672F4@gmail.com> <9d708bb7-99fd-b182-2869-6c694b1fbcbf@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