ECPG sqlca error handling

Поиск
Список
Период
Сортировка
От Matthias Apitz
Тема ECPG sqlca error handling
Дата
Msg-id 20201112070710.GA18127@r314251-amd64
обсуждение исходный текст
Список pgsql-general
Hello,

The documentation explains well how to use the 'sqlca' for error
handling: https://www.postgresql.org/docs/13/ecpg-errors.html#ECPG-SQLCA

An error message is stored in sqlca.sqlerrm.char sqlerrmc[SQLERRMC_LEN].

My question is: Is there some way to get the exact failing ESQL/C
statement, because only the line number does not help in our case.

Thanks in advance

    matthias
-- 
Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
Без книги нет знания, без знания нет коммунизма (Влaдимир Ильич Ленин)
Without books no knowledge - without knowledge no communism (Vladimir Ilyich Lenin)
Sin libros no hay saber - sin saber no hay comunismo. (Vladimir Ilich Lenin)



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

Предыдущее
От: Saurav Sarkar
Дата:
Сообщение: Re: Encryption with customer provided key in a multi tenant Postgres JSONB DB
Следующее
От: Moorthy RS
Дата:
Сообщение: postgres: WAL ends befor end of online backup