Added some more error logging.
authorMichael Meskes <meskes@postgresql.org>
Thu, 10 May 2007 14:29:21 +0000 (14:29 +0000)
committerMichael Meskes <meskes@postgresql.org>
Thu, 10 May 2007 14:29:21 +0000 (14:29 +0000)
src/interfaces/ecpg/ecpglib/data.c

index 3d8842b2aa9d2fcb62dfe76233e3c75b3a6341d2..949e86f5591608dd813eb29ec722972b0b8cccbf 100644 (file)
@@ -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))
                            {
                                /*