aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/compatlib/informix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/ecpg/compatlib/informix.c')
-rw-r--r--src/interfaces/ecpg/compatlib/informix.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/compatlib/informix.c b/src/interfaces/ecpg/compatlib/informix.c
index e32c09077c2..fe12da7b0d5 100644
--- a/src/interfaces/ecpg/compatlib/informix.c
+++ b/src/interfaces/ecpg/compatlib/informix.c
@@ -223,7 +223,10 @@ rstrdate (char *str, Date *d)
{
Date dat = PGTYPESdate_from_asc(str, NULL);
- /* XXX: ERROR handling hier und in datetime.c */
+ if (errno != PGTYPES_DATE_BAD_DATE && dat == 0)
+ return -1218;
+
+ *d=dat;
return 0;
}