forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf52c5d6
committed
Forbid marking an identity column as nullable.
GENERATED ALWAYS AS IDENTITY implies NOT NULL, but the code failedto complain if you overrode that with "GENERATED ALWAYS AS IDENTITYNULL". One might think the old behavior was a feature, but it wasinconsistent because the outcome varied depending on the order ofthe clauses, so it seems to have been just an oversight.Per bug #16913 from Pavel Boev. Back-patch to v10 where identitycolumns were introduced.Vik Fearing (minor tweaks by me)Discussion:https://postgr.es/m/16913-3b5198410f67d8c6@postgresql.org1 parent1b88b89 commitf52c5d6
File tree
4 files changed
+33
-0
lines changed- doc/src/sgml/ref
- src
- backend/parser
- test/regress
- expected
- sql
4 files changed
+33
-0
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
840 | 840 |
| |
841 | 841 |
| |
842 | 842 |
| |
| 843 | + | |
843 | 844 |
| |
844 | 845 |
| |
845 | 846 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
719 | 719 |
| |
720 | 720 |
| |
721 | 721 |
| |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
722 | 731 |
| |
| 732 | + | |
723 | 733 |
| |
724 | 734 |
| |
725 | 735 |
| |
|
Lines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
547 | 547 |
| |
548 | 548 |
| |
549 | 549 |
| |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + |
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
346 | 346 |
| |
347 | 347 |
| |
348 | 348 |
| |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + |
0 commit comments
Comments
(0)