1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-05 07:21:24 +03:00

Fixed error handling in Informix compat str to date conversion.

This commit is contained in:
Michael Meskes
2003-10-07 05:46:56 +00:00
parent 34e9ab027b
commit 3cda980298
3 changed files with 8 additions and 4 deletions

View File

@ -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;