aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/ecpglib/data.c
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2007-05-10 14:29:21 +0000
committerMichael Meskes <meskes@postgresql.org>2007-05-10 14:29:21 +0000
commitb1110aaa8bc7da6f7ebdc12fb550ed378b72ef6e (patch)
treea8595b35572bf9a2e0c314865d60b79fed34c7ae /src/interfaces/ecpg/ecpglib/data.c
parent1aca1cde520aa5b8f5a5a3d6c8b4590d57824da6 (diff)
downloadpostgresql-b1110aaa8bc7da6f7ebdc12fb550ed378b72ef6e.tar.gz
postgresql-b1110aaa8bc7da6f7ebdc12fb550ed378b72ef6e.zip
Added some more error logging.
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/data.c')
-rw-r--r--src/interfaces/ecpg/ecpglib/data.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/ecpglib/data.c b/src/interfaces/ecpg/ecpglib/data.c
index 3d8842b2aa9..949e86f5591 100644
--- a/src/interfaces/ecpg/ecpglib/data.c
+++ b/src/interfaces/ecpg/ecpglib/data.c
@@ -1,4 +1,4 @@
-/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/data.c,v 1.37 2007/01/12 10:00:12 meskes Exp $ */
+/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/data.c,v 1.38 2007/05/10 14:29:21 meskes Exp $ */
#define POSTGRES_ECPG_INTERNAL
#include "postgres_fe.h"
@@ -553,6 +553,9 @@ ECPGget_data(const PGresult *results, int act_tuple, int act_field, int lineno,
/* did we get an error? */
if (ires == NULL)
{
+ ECPGlog("ECPGget_data line %d: RESULT: %s errno %d\n",
+ lineno, pval ? pval : "", errno);
+
if (INFORMIX_MODE(compat))
{
/*
@@ -604,6 +607,9 @@ ECPGget_data(const PGresult *results, int act_tuple, int act_field, int lineno,
/* did we get an error? */
if (errno != 0)
{
+ ECPGlog("ECPGget_data line %d: RESULT: %s errno %d\n",
+ lineno, pval ? pval : "", errno);
+
if (INFORMIX_MODE(compat))
{
/*
@@ -648,6 +654,9 @@ ECPGget_data(const PGresult *results, int act_tuple, int act_field, int lineno,
/* did we get an error? */
if (errno != 0)
{
+ ECPGlog("ECPGget_data line %d: RESULT: %s errno %d\n",
+ lineno, pval ? pval : "", errno);
+
if (INFORMIX_MODE(compat))
{
/*