Bruce Momjian
7f0b690334
Improve comments for AdjustIntervalForTypmod.
...
Blank line adjustments.
2005-07-12 16:05:12 +00:00
Bruce Momjian
09ff9dbe2b
Remove more extraneous parentheses in date/time functions.
2005-05-24 02:09:45 +00:00
Bruce Momjian
4550c1e519
More macro cleanups for date/time.
2005-05-23 21:54:02 +00:00
Bruce Momjian
5ebaae801c
Add datetime macros for constants, for clarity:
...
#define SECS_PER_DAY 86400
#define USECS_PER_DAY INT64CONST(86400000000)
#define USECS_PER_HOUR INT64CONST(3600000000)
#define USECS_PER_MINUTE INT64CONST(60000000)
#define USECS_PER_SEC INT64CONST(1000000)
2005-05-23 18:56:55 +00:00
Michael Meskes
f0299325e4
Added PGTYPEStimestamp_add_interval written by Dave Cramer.
...
Fixed parsing of defines to make sure they used more than once.
2004-12-23 10:46:10 +00:00
Bruce Momjian
b70999d0fd
Make TZNAME_GLOBAL for reference to tzname global variable.
2004-09-09 00:24:12 +00:00
Bruce Momjian
15d3f9f6b7
Another pgindent run with lib typedefs added.
2004-08-30 02:54:42 +00:00
Bruce Momjian
b6b71b85bc
Pgindent run for 8.0.
2004-08-29 05:07:03 +00:00
Michael Meskes
1f87d79142
- Corrected error handling in PGTYPEStimestamp_from_asc.
...
- Set pgtypeslib version to 1.2.
2004-02-24 16:07:49 +00:00
Michael Meskes
8e6b74e4fd
Fixed bug in day of week processing.
2003-10-05 11:12:00 +00:00
Michael Meskes
f604b39c2f
- Applied some bug fixing patches by Dave Cramer <dave@fastcrypt.com>.
...
- Added protecting defines to include files.
2003-09-20 09:10:09 +00:00
Tom Lane
fc73264005
I don't care whether it's informix-compatible or not: #defining a word
...
like 'date' in a public header file is a damn fool idea.
2003-09-16 04:32:28 +00:00
Michael Meskes
fcdf0e22fc
- Added Dave patch for Informix handling of numeric/int conversion.
...
- Changed all new datatypes to lowercase.
- Fixed rounding bug in numerical types.
2003-09-09 10:46:42 +00:00
Michael Meskes
05f4b03b23
Fixed two bugs in pgtypes library.
2003-09-01 12:37:40 +00:00
Bruce Momjian
089003fb46
pgindent run.
2003-08-04 00:43:34 +00:00
Michael Meskes
25b10fc1e6
Missed two places to replace union member.
2003-08-01 18:19:03 +00:00
Michael Meskes
7a9c074cba
- Added some Informix error codes in Informix mode.
...
- Added just another pgtypeslib function.
2003-08-01 08:21:04 +00:00
Tom Lane
841b4a2d55
tm2timestamp should return -1, not elog, on overflow. (In the backend
...
this is merely an API inconsistency, but in ecpg it's fatal.) Also,
fix misconceived overflow test in HAVE_INT64_TIMESTAMP case.
2003-07-04 18:21:14 +00:00
Michael Meskes
7b1885bf98
Fixed initialization bug and added postgres_fe.h to pgtypeslib.
2003-07-02 07:57:36 +00:00
Michael Meskes
2bdd2e5dcf
Use ISO dates in pgtypeslib by default.
...
Applied patch by Philip Yarra to fix some thread issues.
Added a new data type "decimal" which is mostly the same as our
"numeric" but uses a fixed length array to store the digits. This is
for compatibility with Informix and maybe others.
2003-07-01 12:40:52 +00:00
Michael Meskes
6f30d5665c
The remaining files ...
2003-06-25 17:55:50 +00:00
Michael Meskes
fd3ca524eb
Implemented Informix special way to treat NULLs, removed warnings, synced.
2003-06-25 10:44:21 +00:00
Michael Meskes
7b85b730f5
More patches for informix compatibility.
2003-04-01 14:37:25 +00:00
Michael Meskes
999f12982e
Moved Informix stuff to its own compat library. Interval datetype is now fully functional.
2003-03-30 11:48:19 +00:00
Michael Meskes
89508a8492
More changes to pgtypeslib and set optimization to -O1.
2003-03-27 14:29:17 +00:00
Michael Meskes
524e9d62a7
Changes to the parser to accept new datatypes.
2003-03-21 14:17:47 +00:00
Michael Meskes
2e6f97560a
Started adding date and timestamp.
2003-03-20 15:56:50 +00:00