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 17368653a990c32348e2aae0ecbac71a8ceb1d65..38748c7925e439c3ef9d69c3a85bf908820562fa 100644 (file)
@@ -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))
                                                        {
                                                                /*