- Notifications
You must be signed in to change notification settings - Fork5
Commit5894e7e
committed
Add items:
> * Prevent to_char() on interval from returning meaningless values>> For example, to_char('1 month', 'mon') is meaningless. Basically,> most date-related parameters to to_char() are meaningless for> intervals because interval is not anchored to a date.>> * Allow to_char() on interval values to accumulate the highest unit> requested>> o to_char(INTERVAL '1 hour 5 minutes', 'MI') => 65> o to_char(INTERVAL '43 hours 20 minutes', 'MI' ) => 2600> o to_char(INTERVAL '43 hours 20 minutes', 'WK:DD:HR:MI') => 0:1:19:20> o to_char(INTERVAL '3 years 5 months','MM') => 41>> Some special format flag would be required to request such> accumulation. Such functionality could also be added to EXTRACT.> Prevent accumulation that crosses the month/day boundary because of> the uneven number of days in a month.>1 parentb63990c commit5894e7e
2 files changed
+42
-3
lines changedLines changed: 20 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 |
| - | |
| 5 | + | |
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
| |||
188 | 188 |
| |
189 | 189 |
| |
190 | 190 |
| |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
191 | 210 |
| |
192 | 211 |
| |
193 | 212 |
| |
|
Lines changed: 22 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
176 | 176 |
| |
177 | 177 |
| |
178 | 178 |
| |
179 |
| - | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
180 | 200 |
| |
181 | 201 |
| |
182 | 202 |
| |
|
0 commit comments
Comments
(0)