- Notifications
You must be signed in to change notification settings - Fork4.9k
Commite89f4c6
committed
Fix test case to do what it intends to
This test case intended to fail because setting a column as generated tothe partitioned table while leaving the partition alone is not allowed;but instead failed because of a discrepancy of not-null constraint. Fixthis by adding the not-null constraint first, then set the column asgenerated in a separate ALTER TABLE command, which gets the expectederror. Also, because the next test also wants to set the column asnot-null, add a BEGIN/ROLLBACK block so that the added not-null isremoved.Oversight in6995863.1 parent3ca43db commite89f4c6
2 files changed
+7
-3
lines changedLines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
756 | 756 |
| |
757 | 757 |
| |
758 | 758 |
| |
| 759 | + | |
| 760 | + | |
759 | 761 |
| |
760 |
| - | |
761 | 762 |
| |
762 |
| - | |
| 763 | + | |
763 | 764 |
| |
| 765 | + | |
764 | 766 |
| |
765 | 767 |
| |
766 | 768 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
418 | 418 |
| |
419 | 419 |
| |
420 | 420 |
| |
| 421 | + | |
| 422 | + | |
421 | 423 |
| |
422 |
| - | |
423 | 424 |
| |
| 425 | + | |
424 | 426 |
| |
425 | 427 |
| |
426 | 428 |
| |
|
0 commit comments
Comments
(0)