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
/* Now the date functions */
int
-rdatestr(Date d, char *str)
+rdatestr(date d, char *str)
{
char *tmp = PGTYPESdate_to_asc(d);
}
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;
}
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];
}
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 */
}
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;
}
int
-rmdyjul(short mdy[3], Date * d)
+rmdyjul(short mdy[3], date * d)
{
int mdy_int[3];
}
int
-rdayofweek(Date d)
+rdayofweek(date d)
{
return (PGTYPESdate_dayofweek(d));
}
#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);
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 *);