diff options
author | Michael Meskes <meskes@postgresql.org> | 2003-09-20 09:10:09 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2003-09-20 09:10:09 +0000 |
commit | f604b39c2f2230cfb783bce36dff4407f30be0d0 (patch) | |
tree | 29bbbd4b73c140e0439c395158ae75565ae6eec2 /src/interfaces/ecpg/ecpglib/data.c | |
parent | f72a93b4c915aaccb4f4ef3af693c167d9591405 (diff) | |
download | postgresql-f604b39c2f2230cfb783bce36dff4407f30be0d0.tar.gz postgresql-f604b39c2f2230cfb783bce36dff4407f30be0d0.zip |
- Applied some bug fixing patches by Dave Cramer <dave@fastcrypt.com>.
- Added protecting defines to include files.
Diffstat (limited to 'src/interfaces/ecpg/ecpglib/data.c')
-rw-r--r-- | src/interfaces/ecpg/ecpglib/data.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/interfaces/ecpg/ecpglib/data.c b/src/interfaces/ecpg/ecpglib/data.c index 8be86b0bc2d..e1cfc3d2e7c 100644 --- a/src/interfaces/ecpg/ecpglib/data.c +++ b/src/interfaces/ecpg/ecpglib/data.c @@ -1,4 +1,4 @@ -/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/data.c,v 1.19 2003/09/19 14:06:21 meskes Exp $ */ +/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/data.c,v 1.20 2003/09/20 09:10:09 meskes Exp $ */ #define POSTGRES_ECPG_INTERNAL #include "postgres_fe.h" @@ -393,10 +393,12 @@ 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)) { /* Informix wants its own NULL value here instead of an error */ - ECPGset_informix_null(ECPGt_numeric, &nres); + ECPGset_informix_null(ECPGt_numeric, nres); } else { @@ -440,7 +442,7 @@ ECPGget_data(const PGresult *results, int act_tuple, int act_field, int lineno, if (INFORMIX_MODE(compat)) { /* Informix wants its own NULL value here instead of an error */ - ECPGset_informix_null(ECPGt_interval, &ires); + ECPGset_informix_null(ECPGt_interval, ires); } else { |