From 3cda9802989b260f02b45f712523db0e16a39ecb Mon Sep 17 00:00:00 2001 From: Michael Meskes Date: Tue, 7 Oct 2003 05:46:56 +0000 Subject: Fixed error handling in Informix compat str to date conversion. --- src/interfaces/ecpg/compatlib/informix.c | 2 +- 1 file changed, 1 insertion(+), 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 500786cbede..59e4763ccd0 100644 --- a/src/interfaces/ecpg/compatlib/informix.c +++ b/src/interfaces/ecpg/compatlib/informix.c @@ -436,7 +436,7 @@ rstrdate(char *str, date * d) { date dat = PGTYPESdate_from_asc(str, NULL); - if (errno != PGTYPES_DATE_BAD_DATE && dat == 0) + if (errno && errno != PGTYPES_DATE_BAD_DATE) return ECPG_INFORMIX_BAD_DATE; *d = dat; -- cgit v1.2.3