Skip to content

Commit b1110aa

Browse files
author
Michael Meskes
committed
Added some more error logging.
1 parent 1aca1cd commit b1110aa

File tree

1 file changed

+10
-1
lines changed
  • src/interfaces/ecpg/ecpglib

1 file changed

+10
-1
lines changed

src/interfaces/ecpg/ecpglib/data.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/data.c,v 1.37 2007/01/12 10:00:12 meskes Exp $ */
1+
/* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/data.c,v 1.38 2007/05/10 14:29:21 meskes Exp $ */
22

33
#define POSTGRES_ECPG_INTERNAL
44
#include "postgres_fe.h"
@@ -553,6 +553,9 @@ ECPGget_data(const PGresult *results, int act_tuple, int act_field, int lineno,
553553
/* did we get an error? */
554554
if (ires == NULL)
555555
{
556+
ECPGlog("ECPGget_data line %d: RESULT: %s errno %d\n",
557+
lineno, pval ? pval : "", errno);
558+
556559
if (INFORMIX_MODE(compat))
557560
{
558561
/*
@@ -604,6 +607,9 @@ ECPGget_data(const PGresult *results, int act_tuple, int act_field, int lineno,
604607
/* did we get an error? */
605608
if (errno != 0)
606609
{
610+
ECPGlog("ECPGget_data line %d: RESULT: %s errno %d\n",
611+
lineno, pval ? pval : "", errno);
612+
607613
if (INFORMIX_MODE(compat))
608614
{
609615
/*
@@ -648,6 +654,9 @@ ECPGget_data(const PGresult *results, int act_tuple, int act_field, int lineno,
648654
/* did we get an error? */
649655
if (errno != 0)
650656
{
657+
ECPGlog("ECPGget_data line %d: RESULT: %s errno %d\n",
658+
lineno, pval ? pval : "", errno);
659+
651660
if (INFORMIX_MODE(compat))
652661
{
653662
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy