|
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 $ */ |
2 | 2 |
|
3 | 3 | #define POSTGRES_ECPG_INTERNAL
|
4 | 4 | #include "postgres_fe.h"
|
@@ -553,6 +553,9 @@ ECPGget_data(const PGresult *results, int act_tuple, int act_field, int lineno,
|
553 | 553 | /* did we get an error? */
|
554 | 554 | if (ires == NULL)
|
555 | 555 | {
|
| 556 | + ECPGlog("ECPGget_data line %d: RESULT: %s errno %d\n", |
| 557 | + lineno, pval ? pval : "", errno); |
| 558 | + |
556 | 559 | if (INFORMIX_MODE(compat))
|
557 | 560 | {
|
558 | 561 | /*
|
@@ -604,6 +607,9 @@ ECPGget_data(const PGresult *results, int act_tuple, int act_field, int lineno,
|
604 | 607 | /* did we get an error? */
|
605 | 608 | if (errno != 0)
|
606 | 609 | {
|
| 610 | + ECPGlog("ECPGget_data line %d: RESULT: %s errno %d\n", |
| 611 | + lineno, pval ? pval : "", errno); |
| 612 | + |
607 | 613 | if (INFORMIX_MODE(compat))
|
608 | 614 | {
|
609 | 615 | /*
|
@@ -648,6 +654,9 @@ ECPGget_data(const PGresult *results, int act_tuple, int act_field, int lineno,
|
648 | 654 | /* did we get an error? */
|
649 | 655 | if (errno != 0)
|
650 | 656 | {
|
| 657 | + ECPGlog("ECPGget_data line %d: RESULT: %s errno %d\n", |
| 658 | + lineno, pval ? pval : "", errno); |
| 659 | + |
651 | 660 | if (INFORMIX_MODE(compat))
|
652 | 661 | {
|
653 | 662 | /*
|
|
0 commit comments