RefLib

Reference library for AI

Back

postgresql_16:5.3.8 Error Handling

PostgreSQL 16 > Client Interfaces > ECPG — Embedded SQL in C > Error Handling

This section describes how you can handle exceptional conditions and warnings in an embedded SQL program. There are two nonexclusive facilities for this. Callbacks can be configured to handle warning and error conditions using the WHENEVER command. Detailed information about the error or warning can be obtained from the sqlca variable.

Subsections

Back