- Notifications
You must be signed in to change notification settings - Fork5.2k
Commitcf8be02
committed
Prevent setting a column as identity if its not-null constraint is invalid
We don't allow null values to appear in identity-generated columns inother ways, so we shouldn't let unvalidated not-null constraints do iteither. Oversight in commita379061.Author: jian he <jian.universality@gmail.com>Backpatch-through: 18Discussion:https://postgr.es/m/CACJufxGQM_+vZoYJMaRoZfNyV=L2jxosjv_0TLAScbuLJXWRfQ@mail.gmail.com1 parentf242dbc commitcf8be02
File tree
3 files changed
+32
-0
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+32
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8281 | 8281 | | |
8282 | 8282 | | |
8283 | 8283 | | |
| 8284 | + | |
| 8285 | + | |
| 8286 | + | |
| 8287 | + | |
| 8288 | + | |
| 8289 | + | |
| 8290 | + | |
| 8291 | + | |
| 8292 | + | |
| 8293 | + | |
| 8294 | + | |
| 8295 | + | |
| 8296 | + | |
| 8297 | + | |
| 8298 | + | |
| 8299 | + | |
| 8300 | + | |
| 8301 | + | |
| 8302 | + | |
| 8303 | + | |
| 8304 | + | |
| 8305 | + | |
| 8306 | + | |
| 8307 | + | |
| 8308 | + | |
8284 | 8309 | | |
8285 | 8310 | | |
8286 | 8311 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1404 | 1404 | | |
1405 | 1405 | | |
1406 | 1406 | | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
1407 | 1411 | | |
1408 | 1412 | | |
1409 | 1413 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
832 | 832 | | |
833 | 833 | | |
834 | 834 | | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
835 | 838 | | |
836 | 839 | | |
837 | 840 | | |
| |||
0 commit comments
Comments
(0)