Hi Andreas, Andreas Metzler [2006-06-02 18:27 +0200]: > > PQescapeStringConn() is newly introduced in postgresql-8.1 8.1.4, > afaict from > http://packages.qa.debian.org/p/postgresql-8.1/news/20060602T042331Z.html > so I gather that switching to it would either be need to be done > conditionally (at build-time) or building against older versions would > be impossible. > > Is this correct?
Correct. In 8.1.4-2 I even managed to bump the libpq4 shlibs for that. My advice would be to use the autoconf magic and #defines and use -Conn() if it's available, and just PQescapeString() if not. Otherwise, if you are sure that exim only ever uses one connection at a time, then PQescapeString() is completely safe, too. Martin -- Martin Pitt http://www.piware.de Ubuntu Developer http://www.ubuntu.com Debian Developer http://www.debian.org In a world without walls and fences, who needs Windows and Gates?
signature.asc
Description: Digital signature