SQLGetInfo

Поиск
Список
Период
Сортировка
От Grant Shirreffs
Тема SQLGetInfo
Дата
Msg-id CY4PR18MB1079BBC8E22C65D5931A577FCF090@CY4PR18MB1079.namprd18.prod.outlook.com
обсуждение исходный текст
Ответы Re: SQLGetInfo  ("Inoue, Hiroshi" <h-inoue@dream.email.ne.jp>)
Список pgsql-odbc

Looking at the code for SQLGetInfo, where it returns data indicating the driver capabilities with respect to the ODBC SQL syntax, it looks like the implementation is lacking.

 

Specifically, calls to SQL_NUMERIC_FUNCTIONS, SQL_TIMEDATE_FUNCTIONS and SQL_SYSTEM_FUNCTIONS all return 0, even though the convert_escape function in convert.c indicates support for almost all ODBC scalar functions.  Also, SQL_STRING_FUNCTIONS only returns a subset of the full string scalar capabilities, and SQL_LIKE_ESCAPE_CLAUSE is just flat-out wrong when it says that escaped LIKE clauses are not supported.

 

Am I missing something here?  Is there some reason why these capabilities are not reported, or is just a not-finished-yet corner from long ago?

 

I have ‘fixed’ info.c myself, and validated that the correct values are returned and work as expected.  I am happy to supply the modified file if you want to update the codebase.

 

Regards

Grant Shirreffs

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

Предыдущее
От: Grant Shirreffs
Дата:
Сообщение: Bound parameters in escaped functions
Следующее
От: "Inoue, Hiroshi"
Дата:
Сообщение: Re: SQLGetInfo