forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7589d5c
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 parent18e3e29 commit7589d5c
File tree
2 files changed
+14
-2
lines changed- src
- backend/commands
- test/regress/expected
2 files changed
+14
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11419 | 11419 | | |
11420 | 11420 | | |
11421 | 11421 | | |
| 11422 | + | |
| 11423 | + | |
| 11424 | + | |
| 11425 | + | |
| 11426 | + | |
| 11427 | + | |
| 11428 | + | |
| 11429 | + | |
| 11430 | + | |
| 11431 | + | |
11422 | 11432 | | |
11423 | 11433 | | |
11424 | 11434 | | |
| |||
11495 | 11505 | | |
11496 | 11506 | | |
11497 | 11507 | | |
| 11508 | + | |
11498 | 11509 | | |
11499 | 11510 | | |
11500 | 11511 | | |
11501 | 11512 | | |
11502 | | - | |
| 11513 | + | |
11503 | 11514 | | |
11504 | 11515 | | |
11505 | 11516 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
766 | 766 | | |
767 | 767 | | |
768 | 768 | | |
769 | | - | |
| 769 | + | |
| 770 | + | |
770 | 771 | | |
771 | 772 | | |
772 | 773 | | |
| |||
0 commit comments
Comments
(0)