| От | Wolfgang Apolinarski |
|---|---|
| Тема | ODBC - Retrieving info messages - RAISE NOTICE |
| Дата | |
| Msg-id | 005501d39b7c$12bf4010$383dc030$@googlemail.com обсуждение исходный текст |
| Ответы |
Re: ODBC - Retrieving info messages - RAISE NOTICE
|
| Список | pgsql-odbc |
Hi,
When executing a PL/pgsql query using powershell with ODBC (yes, a somehow special setup), it is possible to register
tothe event "InfoMessage" (with Register-ObjectEvent) to retrieve all messages that are created for example by using
"RAISENOTICE".
While this works fine when using MS SQL and the SqlConnection (all print statements are retrieved), it does not work
withPostgres and the OdbcConnection, here, only the last message ("3") is retrieved, when a statement like
DO $$
RAISE NOTICE '1';
RAISE NOTICE '2';
RAISE NOTICE '3';
END$$;
is executed.
Maybe this is a general constraint when using ODBC, but maybe I am doing something terribly wrong (other than using
powershellwith Postgresql).
Best regards,
Wolfgang
В списке pgsql-odbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера