diff options
author | Michael Meskes <meskes@postgresql.org> | 2003-04-08 12:34:25 +0000 |
---|---|---|
committer | Michael Meskes <meskes@postgresql.org> | 2003-04-08 12:34:25 +0000 |
commit | a50f285d8de0eeb24df5a54f077e7aa2fee8eeee (patch) | |
tree | f3a109306a41df5d5cc636c2b0eccf53ea669458 /src/interfaces/ecpg/compatlib/informix.c | |
parent | cd203f33958b99656e8486351be08197a9a73d76 (diff) | |
download | postgresql-a50f285d8de0eeb24df5a54f077e7aa2fee8eeee.tar.gz postgresql-a50f285d8de0eeb24df5a54f077e7aa2fee8eeee.zip |
Added some more informix compatibility functions.
Diffstat (limited to 'src/interfaces/ecpg/compatlib/informix.c')
-rw-r--r-- | src/interfaces/ecpg/compatlib/informix.c | 5 |
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; } |