Some uppercase type definitions were left.
authorMichael Meskes <meskes@postgresql.org>
Wed, 10 Sep 2003 18:03:08 +0000 (18:03 +0000)
committerMichael Meskes <meskes@postgresql.org>
Wed, 10 Sep 2003 18:03:08 +0000 (18:03 +0000)
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/compatlib/informix.c
src/interfaces/ecpg/include/ecpg_informix.h

index 31e67351fff68f7644d8b6ccabc2de3028cd0282..902b73fd8ba7f5ca147dada1be929705b8adebf2 100644 (file)
@@ -1612,6 +1612,16 @@ Tue Aug 26 18:06:45 CEST 2003
 Mon Sep  1 14:33:10 CEST 2003
 
        - Fixed two bugs in numeric library.
+
+Tue Sep  9 12:13:51 CEST 2003
+
+       - Added Dave patch for Informix handling of numeric/int conversion.
+       - Changed all new datatypes to lowercase.
+       - Fixed rounding bug in numerical types.
+       
+Wed Sep 10 20:01:49 CEST 2003
+
+       - Some files still had uppercase typenames
        - Set ecpg version to 3.0.0
        - Set ecpg library to 4.0.0
        - Set pgtypes library to 1.0.0
index c7017e286d9580494525b4934e5144428f89c857..9c4f41bde39358bbb95a597e94d90c31c815882d 100644 (file)
@@ -426,7 +426,7 @@ dectolong(decimal * np, long *lngp)
 
 /* Now the date functions */
 int
-rdatestr(Date d, char *str)
+rdatestr(date d, char *str)
 {
        char       *tmp = PGTYPESdate_to_asc(d);
 
@@ -441,9 +441,9 @@ rdatestr(Date d, char *str)
 }
 
 int
-rstrdate(char *str, Date * d)
+rstrdate(char *str, date * d)
 {
-       Date            dat = PGTYPESdate_from_asc(str, NULL);
+       date            dat = PGTYPESdate_from_asc(str, NULL);
 
        if (errno != PGTYPES_DATE_BAD_DATE && dat == 0)
                return -1218;
@@ -453,14 +453,14 @@ rstrdate(char *str, Date * d)
 }
 
 void
-rtoday(Date * d)
+rtoday(date * d)
 {
        PGTYPESdate_today(d);
        return;
 }
 
 int
-rjulmdy(Date d, short mdy[3])
+rjulmdy(date d, short mdy[3])
 {
        int                     mdy_int[3];
 
@@ -472,7 +472,7 @@ rjulmdy(Date d, short mdy[3])
 }
 
 int
-rdefmtdate(Date * d, char *fmt, char *str)
+rdefmtdate(date * d, char *fmt, char *str)
 {
        /* TODO: take care of DBCENTURY environment variable */
        /* PGSQL functions allow all centuries */
@@ -497,7 +497,7 @@ rdefmtdate(Date * d, char *fmt, char *str)
 }
 
 int
-rfmtdate(Date d, char *fmt, char *str)
+rfmtdate(date d, char *fmt, char *str)
 {
        if (PGTYPESdate_fmt_asc(d, fmt, str) == 0)
                return 0;
@@ -509,7 +509,7 @@ rfmtdate(Date d, char *fmt, char *str)
 }
 
 int
-rmdyjul(short mdy[3], Date * d)
+rmdyjul(short mdy[3], date * d)
 {
        int                     mdy_int[3];
 
@@ -521,7 +521,7 @@ rmdyjul(short mdy[3], Date * d)
 }
 
 int
-rdayofweek(Date d)
+rdayofweek(date d)
 {
        return (PGTYPESdate_dayofweek(d));
 }
index b5c8ed4884f946c492c7df7f2a1f1eee334644ae..1b71735e79d71bd15216e51434b4a40fb763ab06 100644 (file)
@@ -8,18 +8,18 @@
 
 #define SQLNOTFOUND 100
 
-#ifndef Date
-#define Date long
-#endif   /* ! Date */
+#ifndef date
+#define date long
+#endif   /* ! date */
 
-extern int     rdatestr(Date, char *);
-extern void rtoday(Date *);
-extern int     rjulmdy(Date, short *);
-extern int     rdefmtdate(Date *, char *, char *);
-extern int     rfmtdate(Date, char *, char *);
-extern int     rmdyjul(short *, Date *);
-extern int     rstrdate(char *, Date *);
-extern int     rdayofweek(Date);
+extern int     rdatestr(date, char *);
+extern void rtoday(date *);
+extern int     rjulmdy(date, short *);
+extern int     rdefmtdate(date *, char *, char *);
+extern int     rfmtdate(date, char *, char *);
+extern int     rmdyjul(short *, date *);
+extern int     rstrdate(char *, date *);
+extern int     rdayofweek(date);
 
 extern int     rfmtlong(long, char *, char *);
 extern int     rgetmsg(int, char *, int);
@@ -28,7 +28,7 @@ extern int    rsetnull(int, char *);
 extern int     rtypalign(int, int);
 extern int     rtypmsize(int, int);
 extern int     rtypwidth(int, int);
-extern void rupshift(char *);
+extern void    rupshift(char *);
 
 extern int     byleng(char *, int);
 extern void ldchar(char *, int, char *);