|
1 |
| -/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/data.c,v 1.19 2003/09/19 14:06:21 meskes Exp $ */ |
| 1 | +/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/ecpglib/data.c,v 1.20 2003/09/20 09:10:09 meskes Exp $ */ |
2 | 2 |
|
3 | 3 | #definePOSTGRES_ECPG_INTERNAL
|
4 | 4 | #include"postgres_fe.h"
|
@@ -393,10 +393,12 @@ ECPGget_data(const PGresult *results, int act_tuple, int act_field, int lineno,
|
393 | 393 | /* did we get an error? */
|
394 | 394 | if (errno!=0)
|
395 | 395 | {
|
| 396 | +ECPGlog("ECPGget_data line %d: RESULT: %s errno %d\n",lineno,pval ?pval :"",errno); |
| 397 | + |
396 | 398 | if (INFORMIX_MODE(compat))
|
397 | 399 | {
|
398 | 400 | /* Informix wants its own NULL value here instead of an error */
|
399 |
| -ECPGset_informix_null(ECPGt_numeric,&nres); |
| 401 | +ECPGset_informix_null(ECPGt_numeric,nres); |
400 | 402 | }
|
401 | 403 | else
|
402 | 404 | {
|
@@ -440,7 +442,7 @@ ECPGget_data(const PGresult *results, int act_tuple, int act_field, int lineno,
|
440 | 442 | if (INFORMIX_MODE(compat))
|
441 | 443 | {
|
442 | 444 | /* Informix wants its own NULL value here instead of an error */
|
443 |
| -ECPGset_informix_null(ECPGt_interval,&ires); |
| 445 | +ECPGset_informix_null(ECPGt_interval,ires); |
444 | 446 | }
|
445 | 447 | else
|
446 | 448 | {
|
|