forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb64b857
committed
Support for SSSSS datetime format pattern
SQL Standard 2016 defines SSSSS format pattern for seconds past midnight injsonpath .datetime() method and CAST (... FORMAT ...) SQL clause. In ourdatetime parsing engine we currently support it with SSSS name.This commit adds SSSSS as an alias for SSSS. Alias is added in favor ofupcoming jsonpath .datetime() method. But it's also supported in to_date()/to_timestamp() as positive side effect.Discussion:https://postgr.es/m/CAPpHfdsZgYEra_PeCLGNoXOWYx6iU-S3wF8aX0ObQUcZU%2B4XTw%40mail.gmail.comAuthor: Nikita Glukhov, Alexander KorotkovReviewed-by: Anastasia Lubennikova, Peter Eisentraut1 parentd589f94 commitb64b857
File tree
4 files changed
+33
-5
lines changed- doc/src/sgml
- src
- backend/utils/adt
- test/regress
- expected
- sql
4 files changed
+33
-5
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6175 | 6175 |
| |
6176 | 6176 |
| |
6177 | 6177 |
| |
6178 |
| - | |
| 6178 | + | |
6179 | 6179 |
| |
6180 | 6180 |
| |
6181 | 6181 |
| |
|
Lines changed: 8 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
626 | 626 |
| |
627 | 627 |
| |
628 | 628 |
| |
| 629 | + | |
629 | 630 |
| |
630 | 631 |
| |
631 | 632 |
| |
| |||
678 | 679 |
| |
679 | 680 |
| |
680 | 681 |
| |
| 682 | + | |
681 | 683 |
| |
682 | 684 |
| |
683 | 685 |
| |
| |||
787 | 789 |
| |
788 | 790 |
| |
789 | 791 |
| |
790 |
| - | |
| 792 | + | |
| 793 | + | |
791 | 794 |
| |
792 | 795 |
| |
793 | 796 |
| |
| |||
839 | 842 |
| |
840 | 843 |
| |
841 | 844 |
| |
842 |
| - | |
| 845 | + | |
| 846 | + | |
843 | 847 |
| |
844 | 848 |
| |
845 | 849 |
| |
| |||
920 | 924 |
| |
921 | 925 |
| |
922 | 926 |
| |
923 |
| - | |
| 927 | + | |
924 | 928 |
| |
925 | 929 |
| |
926 |
| - | |
| 930 | + | |
927 | 931 |
| |
928 | 932 |
| |
929 | 933 |
| |
|
Lines changed: 20 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3077 | 3077 |
| |
3078 | 3078 |
| |
3079 | 3079 |
| |
| 3080 | + | |
| 3081 | + | |
| 3082 | + | |
| 3083 | + | |
| 3084 | + | |
| 3085 | + | |
| 3086 | + | |
| 3087 | + | |
3080 | 3088 |
| |
3081 | 3089 |
| |
3082 | 3090 |
| |
| |||
3140 | 3148 |
| |
3141 | 3149 |
| |
3142 | 3150 |
| |
| 3151 | + | |
| 3152 | + | |
| 3153 | + | |
| 3154 | + | |
| 3155 | + | |
| 3156 | + | |
| 3157 | + | |
| 3158 | + | |
| 3159 | + | |
| 3160 | + | |
| 3161 | + | |
| 3162 | + | |
3143 | 3163 |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
480 | 480 |
| |
481 | 481 |
| |
482 | 482 |
| |
| 483 | + | |
| 484 | + | |
483 | 485 |
| |
484 | 486 |
| |
485 | 487 |
| |
| |||
503 | 505 |
| |
504 | 506 |
| |
505 | 507 |
| |
| 508 | + | |
| 509 | + | |
506 | 510 |
| |
507 | 511 |
|
0 commit comments
Comments
(0)