Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function. - Mailing list pgsql-odbc

From Tom Lane
Subject Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.
Date
Msg-id 21805.1414540851@sss.pgh.pa.us
Whole thread Raw
In response to Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-odbc
Michael Paquier <michael.paquier@gmail.com> writes:
> On Wed, Oct 29, 2014 at 2:35 AM, rohtodeveloper <rohtodeveloper@outlook.com>
>> That's because the odbc_fdw will also call the odbc driver.
>> The follow pictures explain the situation.

> Ah, right, I completely forgot this fdw. Yeah it may be worth renaming that
> in the odbc driver... Inoue-san, Saito-san, Heikki, thoughts about the
> simple patch attached? check_client_encoding is used to extract an encoding
> name from the connection settings. Perhaps we could do better than that.

It's totally unmaintainable to expect that no global names inside the
backend will ever accidentally match global names in loaded modules.
What we need to be thinking about is why the linker is resolving the name
wrong and how that can be fixed.  I'm inclined to think that this report
indicates a poor choice of link options while building the ODBC library.

            regards, tom lane


pgsql-odbc by date:

Previous
From: Michael Paquier
Date:
Subject: Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.
Next
From: "Inoue, Hiroshi"
Date:
Subject: Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.