This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.

Поиск
Список
Период
Сортировка
От rohtodeveloper
Тема This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.
Дата
Msg-id BAY178-W6C29D0852800F04648E1BC4970@phx.gbl
обсуждение исходный текст
Ответы 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>)
Список pgsql-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 languageand 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!

 

 

 

Вложения

В списке pgsql-odbc по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: PostgreSQL crash at SQLColAttribute()
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: This may be a bug: odbc's function"check_client_encoding" have the same name with postgres's function.