Revert ECPG's use of pnstrdup()
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 7 Aug 2024 07:21:07 +0000 (09:21 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 8 Aug 2024 05:42:44 +0000 (07:42 +0200)
commit3557185538fe7b2e2a04b52a5ed8250597cd0a2d
tree705de173477385b719f3e2811095d3a7446b3bd9
parentecf7c48462396b98c50d32cc77ec5a024fefc34c
Revert ECPG's use of pnstrdup()

Commit 0b9466fce added a dependency on fe_memutils' pnstrdup() inside
informix.c.  This adds an exit() path in a library, which we don't
want.  (Unlike libpq, the ecpg libraries don't have an automated check
for that, but it makes sense to keep them to a similar standard.)  The
ecpg code can already handle failure results from the *strdup() call
by itself.

Author: Jacob Champion <jacob.champion@enterprisedb.com>
Discussion: http://www.postgresql.org/message-id/CAOYmi+=pg=W5L1h=3MEP_EB24jaBu2FyATrLXqQHGe7cpuvwyg@mail.gmail.com
src/interfaces/ecpg/compatlib/informix.c