aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/compatlib/informix.c
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2003-04-08 12:34:25 +0000
committerMichael Meskes <meskes@postgresql.org>2003-04-08 12:34:25 +0000
commita50f285d8de0eeb24df5a54f077e7aa2fee8eeee (patch)
treef3a109306a41df5d5cc636c2b0eccf53ea669458 /src/interfaces/ecpg/compatlib/informix.c
parentcd203f33958b99656e8486351be08197a9a73d76 (diff)
downloadpostgresql-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.c5
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;
}