forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4d68a04
committed
Disallow USING clause when altering type of generated column
This does not make sense. It would write the output of the USINGclause into the converted column, which would violate the generationexpression. This adds a check to error out if this is specified.There was a test for this, but that test errored out for a differentreason, so it was not effective.Reported-by: Jian He <jian.universality@gmail.com>Reviewed-by: Yugo NAGATA <nagata@sraoss.co.jp>Discussion:https://www.postgresql.org/message-id/flat/c7083982-69f4-4b14-8315-f9ddb20b9834%40eisentraut.org1 parent478846e commit4d68a04
File tree
2 files changed
+14
-2
lines changed- src
- backend/commands
- test/regress/expected
2 files changed
+14
-2
lines changedLines changed: 12 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12677 | 12677 |
| |
12678 | 12678 |
| |
12679 | 12679 |
| |
| 12680 | + | |
| 12681 | + | |
| 12682 | + | |
| 12683 | + | |
| 12684 | + | |
| 12685 | + | |
| 12686 | + | |
| 12687 | + | |
| 12688 | + | |
| 12689 | + | |
12680 | 12690 |
| |
12681 | 12691 |
| |
12682 | 12692 |
| |
| |||
12753 | 12763 |
| |
12754 | 12764 |
| |
12755 | 12765 |
| |
| 12766 | + | |
12756 | 12767 |
| |
12757 | 12768 |
| |
12758 | 12769 |
| |
12759 | 12770 |
| |
12760 |
| - | |
| 12771 | + | |
12761 | 12772 |
| |
12762 | 12773 |
| |
12763 | 12774 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1026 | 1026 |
| |
1027 | 1027 |
| |
1028 | 1028 |
| |
1029 |
| - | |
| 1029 | + | |
| 1030 | + | |
1030 | 1031 |
| |
1031 | 1032 |
| |
1032 | 1033 |
| |
|
0 commit comments
Comments
(0)