forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0f9a438
ATPrepAddPrimaryKey: ignore non-PK constraints
Because of lack of test coverage, this function added byb0e96f3wasn't ignoring constraint types other than primary keys, which itshould have. Add some lines to a test for it.Reported-by: Richard Guo <guofenglinux@gmail.com>Discussion:https://postgr.es/m/CAMbWs48bc-k_-1fh0dZpAhp_LiR5MfEX9haystmoBboR_4czCQ@mail.gmail.com1 parent3693cc1 commit0f9a438
File tree
3 files changed
+47
-5
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+47
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8907 | 8907 | | |
8908 | 8908 | | |
8909 | 8909 | | |
8910 | | - | |
| 8910 | + | |
| 8911 | + | |
| 8912 | + | |
| 8913 | + | |
| 8914 | + | |
| 8915 | + | |
| 8916 | + | |
| 8917 | + | |
8911 | 8918 | | |
8912 | 8919 | | |
8913 | 8920 | | |
| |||
8916 | 8923 | | |
8917 | 8924 | | |
8918 | 8925 | | |
8919 | | - | |
8920 | | - | |
| 8926 | + | |
8921 | 8927 | | |
8922 | 8928 | | |
8923 | 8929 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2309 | 2309 | | |
2310 | 2310 | | |
2311 | 2311 | | |
2312 | | - | |
| 2312 | + | |
| 2313 | + | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
| 2318 | + | |
| 2319 | + | |
| 2320 | + | |
| 2321 | + | |
| 2322 | + | |
| 2323 | + | |
| 2324 | + | |
| 2325 | + | |
| 2326 | + | |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
2313 | 2336 | | |
2314 | 2337 | | |
2315 | 2338 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
846 | 846 | | |
847 | 847 | | |
848 | 848 | | |
849 | | - | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
850 | 863 | | |
851 | 864 | | |
852 | 865 | | |
| |||
0 commit comments
Comments
(0)