forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit09e99ce
committed
Fix handling of format string text characters in to_timestamp()/to_date()
cf98467 introduced improvement of handling of spaces and separators into_timestamp()/to_date() functions. In particular, now we're skipping spacesboth before and after fields. That may cause format string text character toconsume part of field in the situations, when it didn't happen beforecf98467.This commit cause format string text character consume input string charactersonly when since previous field (or string beginning) number of skipped inputstring characters is not greater than number of corresponding format stringcharacters (that is we didn't skip any extra characters in input string).1 parent38763d6 commit09e99ce
File tree
3 files changed
+36
-2
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
3 files changed
+36
-2
lines changedLines changed: 17 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3061 | 3061 |
| |
3062 | 3062 |
| |
3063 | 3063 |
| |
3064 |
| - | |
3065 | 3064 |
| |
3066 |
| - | |
| 3065 | + | |
| 3066 | + | |
| 3067 | + | |
| 3068 | + | |
| 3069 | + | |
| 3070 | + | |
| 3071 | + | |
| 3072 | + | |
| 3073 | + | |
| 3074 | + | |
| 3075 | + | |
| 3076 | + | |
| 3077 | + | |
| 3078 | + | |
| 3079 | + | |
| 3080 | + | |
| 3081 | + | |
3067 | 3082 |
| |
3068 | 3083 |
| |
3069 | 3084 |
| |
|
Lines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3128 | 3128 |
| |
3129 | 3129 |
| |
3130 | 3130 |
| |
| 3131 | + | |
| 3132 | + | |
| 3133 | + | |
| 3134 | + | |
| 3135 | + | |
| 3136 | + | |
| 3137 | + | |
| 3138 | + | |
| 3139 | + | |
| 3140 | + | |
| 3141 | + | |
| 3142 | + | |
| 3143 | + | |
| 3144 | + | |
| 3145 | + | |
3131 | 3146 |
| |
3132 | 3147 |
| |
3133 | 3148 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
495 | 495 |
| |
496 | 496 |
| |
497 | 497 |
| |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
498 | 502 |
| |
499 | 503 |
| |
500 | 504 |
| |
|
0 commit comments
Comments
(0)