From: Arnaud L. <arnaud.listes@codata.eu>
To: pgsql-odbc@postgresql.org
Subject: Re: Problem in using PostgreSQL ODBC driver with VBA
Date: Thu, 10 Nov 2016 13:48:59 +0100
Message-ID: <3060c627-b416-a491-7189-234cd72abad2@codata.eu> (raw)
In-Reply-To: <77c91b86-9721-7125-21bb-55e811513be1@regione.toscana.it>
References: <13c604c0-7b6c-b0e0-5b87-ba7187f6a700@regione.toscana.it>
<9b9a9fcc-d39b-8451-1e09-48515fa84026@aklaver.com>
<581AFB17020000A7000370D0@gwia1.abag.ca.gov>
<5f73bd25-c372-6b91-1961-88d3656345a7@regione.toscana.it>
<58203522020000A70003717F@gwia1.abag.ca.gov>
<e961e3a5-3d15-b840-d096-a1306215b2f1@codata.eu>
<77c91b86-9721-7125-21bb-55e811513be1@regione.toscana.it>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
Le 10/11/2016 à 10:46, Vincenzo Turturro a écrit :
> Il 10/11/2016 09:42, Arnaud L. ha scritto:
>> I've been using the solution from this post for a long time and never
>> had any problem :
>> http://www.postgresonline.com/journal/index.php?url=archives/24-Using-MS-Access-with-PostgreSQL.html
>>
>> See the section "dealing with boolean".
>> I like the fact that function is written in pure SQL.
>>
>
> I have tried the solution you suggest, but without success.
> I used the SQL statements provided in the post, but the problem wasn't
> solved.
> Maybe I missed something that is not mentioned in the post because it's
> obvious for PG users ?
> Keep in mind I'm a newby in PG !
I'm no PG guru either, so the only "obvious" thing I can think of is
that the operators and functions you are creating are not in your search
path when you connect through ODBC.
So I guess the best for you would be to create them in the public
schema, and to check in your ODBC connection that the public schema is
in your search path. (a simple "show search_path;" query)
Then through ODBC, what do you get when you try to directly call
inttobool() or notinttobool ? Do these functions exist and work as
expected ?
i.e. select inttobool(-1,true);
And what about a direct call to the operators ?
i.e. what do you have when you call
select 1::int4 <> false::boolean ;
and what about the schema-qualified version ?
select 1::int4 operator(public.<>) false::boolean;
Regards
--
Arnaud
--
Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-odbc
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: arnaud.listes@codata.eu
Subject: Re: Problem in using PostgreSQL ODBC driver with VBA
In-Reply-To: <3060c627-b416-a491-7189-234cd72abad2@codata.eu>
References: <13c604c0-7b6c-b0e0-5b87-ba7187f6a700@regione.toscana.it> <9b9a9fcc-d39b-8451-1e09-48515fa84026@aklaver.com> <581AFB17020000A7000370D0@gwia1.abag.ca.gov> <5f73bd25-c372-6b91-1961-88d3656345a7@regione.toscana.it> <58203522020000A70003717F@gwia1.abag.ca.gov> <e961e3a5-3d15-b840-d096-a1306215b2f1@codata.eu> <77c91b86-9721-7125-21bb-55e811513be1@regione.toscana.it> <3060c627-b416-a491-7189-234cd72abad2@codata.eu>
* 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