Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb1110aa

Browse files
author
Michael Meskes
committed
Added some more error logging.
1 parent1aca1cd commitb1110aa

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
#definePOSTGRES_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)

[8]ページ先頭

©2009-2025 Movatter.jp