ECPG sqlca error handling - Mailing list pgsql-general

From Matthias Apitz
Subject ECPG sqlca error handling
Date
Msg-id 20201112070710.GA18127@r314251-amd64
Whole thread Raw
List 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 by date:

Previous
From: Saurav Sarkar
Date:
Subject: Re: Encryption with customer provided key in a multi tenant Postgres JSONB DB
Next
From: Moorthy RS
Date:
Subject: postgres: WAL ends befor end of online backup