aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/cash.c
Commit message (Collapse)AuthorAge
...
* We store Cash/money as int of size 4, so make it an int rather than a long.Bruce Momjian1997-08-22
|
* Change time function names to be more consistent, and check for zero ↵Bruce Momjian1997-08-21
| | | | divides, from Michael Reifenberg.
* From: "D'Arcy J.M. Cain" <darcy@druid.net>Marc G. Fournier1997-04-28
| | | | | | | | | | Subject: [HACKERS] Inputting money I notice that I have to put single quotes around money amounts if there is a decimal point in the value. I appears to be happening because there is something changing things like "123.45" to "123.450000" and the code has a problem with that. There may be a better way to fix this but here is a simple change to cash.c that lets it accept trailing zeroes.
* From: "Pedro J. Lobo" <pjlobo@euitt.upm.es>Marc G. Fournier1997-04-24
| | | | | | | | | | | | | | | | | Subject: [PATCHES] Patches for compiling 6.1 on Digital Unix 3.2c Attached to this message are the patches I needed to compile 6.1 cleanly under Digital Unix 3.2c with DEC cc. I hope these are the last ones. At least, the number of files needing a patch has decreased noticeably since I sent my previous patches. Nice work :-) One of the patches is a bug fix, but I'm including it here anyway. With these patches applied, the beast seems to work properly. However, I've done only some preliminary tests. More on this later (but hopefully before the April 30 deadline... :-)
* DeclarationVadim B. Mikheev1997-04-18
| | | | | static const char *num_word(Cash value); moved here from cash.h
* From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>Marc G. Fournier1997-04-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Subject: [HACKERS] Money integration patches Here are patches to integrate the money data type. I have included some math and aggregate functions and have made the locale support optional by #ifdef USE_LOCALE bracketing of functions. Modules affected are: builtins.h.patch cash.c.patch cash.h.patch main.c.patch pg_aggregate.h.patch pg_operator.h.patch pg_proc.h.patch pg_type.h.patch I changed the data type to be pass-by-reference rather than by-value to pave the way for a larger internal representation (64-bit ints?). Also, I changed the tabbing of cash.c and cash.h to match most of the other Postgres source code files (4 space indent, 8 spaces == 1 tab). The locale stuff should be tested under another convention (Russian?) but I don't know what the correct results should be so perhaps someone else can give them a try. Will update docs and regression tests in the next few days.
* Finish removing the TEST_MAIN stuff, which was mean for standaloneMarc G. Fournier1997-04-10
| | | | testing
* Fix #include "cash.h" to be #include <utils/cash.h>Marc G. Fournier1997-04-10
| | | | Remove the TEST_MAIN stuff at the top...
* Add in D'Arcy's cash codeMarc G. Fournier1997-04-09
pg_proc.h still needs modifying, but this gets it in there so that we can get around any compiler bugs. Will try and get the pg_proc.h entries done up later tonight...