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:
@ -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;
|
||||
|
Reference in New Issue
Block a user