mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
Some uppercase type definitions were left.
This commit is contained in:
parent
0f310ee703
commit
573f4500a3
@ -1612,6 +1612,16 @@ Tue Aug 26 18:06:45 CEST 2003
|
|||||||
Mon Sep 1 14:33:10 CEST 2003
|
Mon Sep 1 14:33:10 CEST 2003
|
||||||
|
|
||||||
- Fixed two bugs in numeric library.
|
- 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 version to 3.0.0
|
||||||
- Set ecpg library to 4.0.0
|
- Set ecpg library to 4.0.0
|
||||||
- Set pgtypes library to 1.0.0
|
- Set pgtypes library to 1.0.0
|
||||||
|
@ -426,7 +426,7 @@ dectolong(decimal * np, long *lngp)
|
|||||||
|
|
||||||
/* Now the date functions */
|
/* Now the date functions */
|
||||||
int
|
int
|
||||||
rdatestr(Date d, char *str)
|
rdatestr(date d, char *str)
|
||||||
{
|
{
|
||||||
char *tmp = PGTYPESdate_to_asc(d);
|
char *tmp = PGTYPESdate_to_asc(d);
|
||||||
|
|
||||||
@ -441,9 +441,9 @@ rdatestr(Date d, char *str)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
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)
|
if (errno != PGTYPES_DATE_BAD_DATE && dat == 0)
|
||||||
return -1218;
|
return -1218;
|
||||||
@ -453,14 +453,14 @@ rstrdate(char *str, Date * d)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
rtoday(Date * d)
|
rtoday(date * d)
|
||||||
{
|
{
|
||||||
PGTYPESdate_today(d);
|
PGTYPESdate_today(d);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
rjulmdy(Date d, short mdy[3])
|
rjulmdy(date d, short mdy[3])
|
||||||
{
|
{
|
||||||
int mdy_int[3];
|
int mdy_int[3];
|
||||||
|
|
||||||
@ -472,7 +472,7 @@ rjulmdy(Date d, short mdy[3])
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
rdefmtdate(Date * d, char *fmt, char *str)
|
rdefmtdate(date * d, char *fmt, char *str)
|
||||||
{
|
{
|
||||||
/* TODO: take care of DBCENTURY environment variable */
|
/* TODO: take care of DBCENTURY environment variable */
|
||||||
/* PGSQL functions allow all centuries */
|
/* PGSQL functions allow all centuries */
|
||||||
@ -497,7 +497,7 @@ rdefmtdate(Date * d, char *fmt, char *str)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
rfmtdate(Date d, char *fmt, char *str)
|
rfmtdate(date d, char *fmt, char *str)
|
||||||
{
|
{
|
||||||
if (PGTYPESdate_fmt_asc(d, fmt, str) == 0)
|
if (PGTYPESdate_fmt_asc(d, fmt, str) == 0)
|
||||||
return 0;
|
return 0;
|
||||||
@ -509,7 +509,7 @@ rfmtdate(Date d, char *fmt, char *str)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
rmdyjul(short mdy[3], Date * d)
|
rmdyjul(short mdy[3], date * d)
|
||||||
{
|
{
|
||||||
int mdy_int[3];
|
int mdy_int[3];
|
||||||
|
|
||||||
@ -521,7 +521,7 @@ rmdyjul(short mdy[3], Date * d)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
rdayofweek(Date d)
|
rdayofweek(date d)
|
||||||
{
|
{
|
||||||
return (PGTYPESdate_dayofweek(d));
|
return (PGTYPESdate_dayofweek(d));
|
||||||
}
|
}
|
||||||
|
@ -8,18 +8,18 @@
|
|||||||
|
|
||||||
#define SQLNOTFOUND 100
|
#define SQLNOTFOUND 100
|
||||||
|
|
||||||
#ifndef Date
|
#ifndef date
|
||||||
#define Date long
|
#define date long
|
||||||
#endif /* ! Date */
|
#endif /* ! date */
|
||||||
|
|
||||||
extern int rdatestr(Date, char *);
|
extern int rdatestr(date, char *);
|
||||||
extern void rtoday(Date *);
|
extern void rtoday(date *);
|
||||||
extern int rjulmdy(Date, short *);
|
extern int rjulmdy(date, short *);
|
||||||
extern int rdefmtdate(Date *, char *, char *);
|
extern int rdefmtdate(date *, char *, char *);
|
||||||
extern int rfmtdate(Date, char *, char *);
|
extern int rfmtdate(date, char *, char *);
|
||||||
extern int rmdyjul(short *, Date *);
|
extern int rmdyjul(short *, date *);
|
||||||
extern int rstrdate(char *, Date *);
|
extern int rstrdate(char *, date *);
|
||||||
extern int rdayofweek(Date);
|
extern int rdayofweek(date);
|
||||||
|
|
||||||
extern int rfmtlong(long, char *, char *);
|
extern int rfmtlong(long, char *, char *);
|
||||||
extern int rgetmsg(int, char *, int);
|
extern int rgetmsg(int, char *, int);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user