ecpg: check return value of replace_variables()

Daniel Gustafsson <dgustafsson@postgresql.org>

Commit: 0d82163958005b2ba56f8c58311888d142fa4509
Author: Daniel Gustafsson <dgustafsson@postgresql.org>
Date: 2025-10-17T08:03:15Z
ecpg: check return value of replace_variables()

The function returns false if it fails to allocate memory, so
make sure to check the return value in callsites.

Author: Aleksander Alekseev <aleksander@tigerdata.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/CAJ7c6TNPrU8ZxgdfN3PyGY1tzo0bgszx+KkqW0Z7zt3heyC1GQ@mail.gmail.com

Files

PathChange+/−
src/interfaces/ecpg/ecpglib/prepare.c modified +7 −1

Discussion