diff options
| author | David Sommerseth <dazo@users.sourceforge.net> | 2012-02-26 00:03:36 +0100 |
|---|---|---|
| committer | David Sommerseth <dazo@users.sourceforge.net> | 2013-06-13 01:06:19 +0200 |
| commit | ddcdca6ff23a16ca681f49ab090c9a5c426ed07f (patch) | |
| tree | f1881727386f050364bfd10b468a6a9a28a23756 /database/postgresql/pgsql-common.h | |
| parent | 1b6f81682c71d056ae554ec557615d821f7d1f48 (diff) | |
| download | eurephia-ddcdca6ff23a16ca681f49ab090c9a5c426ed07f.tar.gz eurephia-ddcdca6ff23a16ca681f49ab090c9a5c426ed07f.tar.xz eurephia-ddcdca6ff23a16ca681f49ab090c9a5c426ed07f.zip | |
edb-pgsql: Added ePGerrorMessageXML() to return PostgreSQL errors in XML
Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Diffstat (limited to 'database/postgresql/pgsql-common.h')
| -rw-r--r-- | database/postgresql/pgsql-common.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/database/postgresql/pgsql-common.h b/database/postgresql/pgsql-common.h index a1bbed0..cf5131a 100644 --- a/database/postgresql/pgsql-common.h +++ b/database/postgresql/pgsql-common.h @@ -33,6 +33,11 @@ #define _PGSQL_ERROR_H #include <stdarg.h> + +#ifdef HAVE_LIBXML2 +#include <libxml/tree.h> +#endif + #include <eurephia_context.h> #include "prepared-sql.h" @@ -43,5 +48,11 @@ void __ePGerrorMessage(eurephiaCTX *ctx, PGresult *dbr, int logdst, int loglvl, ePG_prepID prepid, const char *errfile, const long errline, const char *fmt, ...); +#ifdef HAVE_LIBXML2 +#define ePGerrorMessageXML(ctx, dbr, logdst, prepid) __ePGerrorMessageXML(ctx, dbr, logdst, prepid, __FILE__, __LINE__) +xmlNode * __ePGerrorMessageXML(eurephiaCTX *ctx, PGresult *dbr, int logdst, ePG_prepID prepid, + const char *errfile, const long errline); + +#endif #endif |
