aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2003-09-10 18:03:08 +0000
committerMichael Meskes <meskes@postgresql.org>2003-09-10 18:03:08 +0000
commit573f4500a31365c81cfd9c89afab257bacf79a1b (patch)
treee40b27b90bed589b0fadeccab0d1266c393ffe48
parent0f310ee703108c69b4cbd7e7267535c4e4441c50 (diff)
downloadpostgresql-573f4500a31365c81cfd9c89afab257bacf79a1b.tar.gz
postgresql-573f4500a31365c81cfd9c89afab257bacf79a1b.zip
Some uppercase type definitions were left.
-rw-r--r--src/interfaces/ecpg/ChangeLog10
-rw-r--r--src/interfaces/ecpg/compatlib/informix.c18
-rw-r--r--src/interfaces/ecpg/include/ecpg_informix.h24
3 files changed, 31 insertions, 21 deletions
diff --git a/src/interfaces/ecpg/ChangeLog b/src/interfaces/ecpg/ChangeLog
index 31e67351fff..902b73fd8ba 100644
--- a/src/interfaces/ecpg/ChangeLog
+++ b/src/interfaces/ecpg/ChangeLog
@@ -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
diff --git a/src/interfaces/ecpg/compatlib/informix.c b/src/interfaces/ecpg/compatlib/informix.c
index c7017e286d9..9c4f41bde39 100644
--- a/src/interfaces/ecpg/compatlib/informix.c
+++ b/src/interfaces/ecpg/compatlib/informix.c
@@ -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));
}
diff --git a/src/interfaces/ecpg/include/ecpg_informix.h b/src/interfaces/ecpg/include/ecpg_informix.h
index b5c8ed4884f..1b71735e79d 100644
--- a/src/interfaces/ecpg/include/ecpg_informix.h
+++ b/src/interfaces/ecpg/include/ecpg_informix.h
@@ -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 *);