From: rohtodeveloper <rohtodeveloper@outlook.com>
To: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.
Date: Mon, 20 Oct 2014 11:56:00 +0000
Message-ID: <BAY178-W6C29D0852800F04648E1BC4970@phx.gbl> (raw)
In-Reply-To: <3692B3C3C5EFEF4E87878CD096A0768C194858@G08CNEXMBPEKD02.g08.fujitsu.local>
References: <B360903EF4334A46996CD3253DAB94210103F90D@G08CNEXMBPEKD03.g08.fujitsu.local>
<3692B3C3C5EFEF4E87878CD096A0768C194858@G08CNEXMBPEKD02.g08.fujitsu.local>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-odbc>
Dear all,
I found a problem in the odbc driver on linux platfrom.
Inside the odbc driver,there is a function called check_client_encoding() ,however,there is also a function which has the same name inside the postgres.
once the two functions are in the same process, problems may occur,because the system may choose the wrong function to execute.
If I create a postgres's FUNCTION(myfunc()) using C language,and use this FUNCTION
to call the odbc driver(psqlodbcw.so),this problem may happen.
The follow picture explain the situation.
The declaration of the two functions are as follows:
➀ UCHAR *check_client_encoding(const UCHAR *sql_string);
② bool check_client_encoding(char **newval, void **extra, GucSource source);
I want to call the odbc's function "check_client_encoding",however it calls the postgres's function "check_client_encoding".
I think this probably is a bug.
Call you help me with this problem?
Thank you so much!
Attachments:image001.gif (image/gif, 6.7K) downloadview image
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: rohtodeveloper@outlook.com
Subject: Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.
In-Reply-To: <BAY178-W6C29D0852800F04648E1BC4970@phx.gbl>
References: <B360903EF4334A46996CD3253DAB94210103F90D@G08CNEXMBPEKD03.g08.fujitsu.local> <3692B3C3C5EFEF4E87878CD096A0768C194858@G08CNEXMBPEKD02.g08.fujitsu.local> <BAY178-W6C29D0852800F04648E1BC4970@phx.gbl>
* 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