From a50f285d8de0eeb24df5a54f077e7aa2fee8eeee Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Tue, 8 Apr 2003 12:34:25 +0000 Subject: Added some more informix compatibility functions. --- src/interfaces/ecpg/compatlib/informix.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/interfaces/ecpg/compatlib/informix.c') 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; } -- cgit v1.2.3