| От | Heikki Linnakangas |
|---|---|
| Тема | Re: Bug report - ODBC Driver - Error 42P18 |
| Дата | |
| Msg-id | 5310BE6C.4080608@vmware.com обсуждение исходный текст |
| Ответ на | Bug report - ODBC Driver - Error 42P18 (Consolity Inc <consolity@outlook.com>) |
| Список | pgsql-odbc |
On 02/28/2014 06:20 PM, Consolity Inc wrote: > The PostgreSQL ANSI ODBC driver reports 42P18 - ERROR: could not determine data type of parameter $<n>; when preparingSQL with an expression of the form: > <bound parameter> IS NULL. > This is a breaking change to existing code that depends on being able to check the NULL-ness of a parameter. > Behavior is new as of psqlODBC 09.03.0100 The default for UseServerSidePrepare changed in 09.03.0100. Maybe it's because of that? You can try setting UseServerSidePrepare=0 to get the old behavior. I would recommend modifying the query to explicitly cast the parameter, though. Something like "?::text IS NULL" should work. - Heikki
В списке pgsql-odbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера