Commit Graph

141 Commits (9f194709665e1f7d7e5064ee4e78134eb0a6b125)

Author SHA1 Message Date
Bruce Momjian 9f19470966 Simplify code in formatting.c now that to upper/lower/initcase do not 17 years ago
Tom Lane 07a5606735 Make to_char()'s localized month/day names depend on LC_TIME, not LC_MESSAGES. 17 years ago
Tom Lane 220db7ccd8 Simplify and standardize conversions between TEXT datums and ordinary C 18 years ago
Tom Lane 19595835c3 Refactor to_char/to_date formatting code; primarily, replace DCH_processor 18 years ago
Bruce Momjian 9098ab9e32 Update copyrights in source tree to 2008. 18 years ago
Bruce Momjian b85cf684f7 Add more comments about thousands separator handling. 18 years ago
Bruce Momjian d9bc7a3946 Add comments about thousands separator logic. 18 years ago
Bruce Momjian 3894e7cc55 When setting default thousands separator when locale has "", use logic 18 years ago
Bruce Momjian 6f3149e464 Fix typo in comment. 18 years ago
Bruce Momjian fdf5a5efb7 pgindent run for 8.3. 18 years ago
Tom Lane bdd6b62245 Switch over to using the src/timezone functions for formatting timestamps 18 years ago
Tom Lane 6faf795662 Fix a passel of ancient bugs in to_char(), including two distinct buffer 18 years ago
Tom Lane 234a02b2a8 Replace direct assignments to VARATT_SIZEP(x) with SET_VARSIZE(x, len). 19 years ago
Bruce Momjian 4fe1a12c54 Remove rint() for to_char MS and US output. We can't us rint() because 19 years ago
Bruce Momjian f7a51b7a0d Cleanup of to_char() patch. 19 years ago
Peter Eisentraut 89b18bdd2a Fix // comment 19 years ago
Bruce Momjian 4ebb0cf9c3 Add two new format fields for use with to_char(), to_date() and 19 years ago
Bruce Momjian 764122471a Fix to_date()/to_timestamp() 'D' field for day of week, was off by one. 19 years ago
Bruce Momjian d1d3f4d015 Add comment that to_char() for broken glibc pt_BR might cause a problem. 19 years ago
Bruce Momjian d7fee591db Remove blank lines in code. 19 years ago
Bruce Momjian acb3416686 Remove blank line from C code. 19 years ago
Bruce Momjian b577aa9ebc Fix bug when localized to_char() day or month names were incorectly 19 years ago
Bruce Momjian 9e9e387ecf Fix bug in our code when using to_timestamp() or to_date() without "TM". 19 years ago
Tom Lane 9a54b76b39 Fix handling of CC (century) format spec in to_date/to_char. According to 19 years ago
Bruce Momjian 29dccf5fe0 Update CVS HEAD for 2007 copyright. Back branches are typically not 19 years ago
Peter Eisentraut b64d2d2133 Add workaround for localizing May and abbreviated May differently. Idea 19 years ago
Bruce Momjian 9b15b14014 Revert (too late in beta): 19 years ago
Bruce Momjian d2b694d825 Fix to_char() locale handling to honor LC_TIME, not LC_MESSAGES. 19 years ago
Bruce Momjian f99a569a2e pgindent run for 8.2. 19 years ago
Bruce Momjian 94cf48d72b Back out patch added during 8.2.X development: 19 years ago
Bruce Momjian 1d4abf2175 Fix case where "PM" to_timestamp() mask was eating too many characters. 19 years ago
Bruce Momjian 5d096d0127 Fix problem that sscanf(buf, "%d", &val) eats leading white space, but 19 years ago
Bruce Momjian e37a649e94 C code whitespace inprovement for formatting.c. 19 years ago
Bruce Momjian f2f5b05655 Update copyright for 2006. Update scripts. 20 years ago
Bruce Momjian 6839bc95d4 Add comment about localized month names for to_date and to_timestamp. 20 years ago
Bruce Momjian 8325be229c Revert because C locale uses "" for thousands_sep, meaning "n/a", while 20 years ago
Bruce Momjian 2cb61220eb Support "" for thousands separator and plus sign in to_char(), per 20 years ago
Bruce Momjian f695750c43 Allow to_char() to print localized month and day names. 20 years ago
Bruce Momjian d20901a39b Allow to_char(interval) and to_char(time) to use AM/PM specifications. 20 years ago
Bruce Momjian 436a2956d8 Re-run pgindent, fixing a problem where comment lines after a blank 20 years ago
Tom Lane 7218aab7a2 Adjust not-too-sane calculation of DDD value for to_char(interval). 20 years ago
Bruce Momjian 1dc3498251 Standard pgindent run for 8.1. 20 years ago
Bruce Momjian 7be1b3ba74 Add hint for to_char(interval) invalid format specifications. 20 years ago
Bruce Momjian e20261128d Fix to_char(interval) to return proper year and century values. 20 years ago
Bruce Momjian 63f850cd4d More formatting.c cleanups. 20 years ago
Bruce Momjian 9cd3fb172d Small cleanup. 20 years ago
Bruce Momjian 420fc28ac5 Adjust to_char/from_char code to use boolean "is_to_char" rather than 20 years ago
Neil Conway a4c75ece82 Fix a few macro definitions to ensure that unary minus is enclosed in 20 years ago
Bruce Momjian 3dbbbbf8e9 Andrew pointed out that the current fix didn't handle dates that were 20 years ago
Bruce Momjian a536b2dd80 Add time/date macros for code clarity: 20 years ago