Skip to content

Commit ec591c4

Browse files
authored
Stored computed columns support FKs, with limits (#18792)
* Stored computed columns support FKs, with limits Fixes DOC-10491
1 parent c74a328 commit ec591c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/current/v24.2/computed-columns.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ Computed columns:
3030
- Cannot be used to generate other computed columns.
3131
- Behave like any other column, with the exception that they cannot be written to directly.
3232
- Are mutually exclusive with [`DEFAULT`]({% link {{ page.version.version }}/default-value.md %}) and [`ON UPDATE`]({% link {{ page.version.version }}/create-table.md %}#on-update-expressions) expressions.
33+
- {% include_cached new-in.html version="v24.2" %} Can be used in [`FOREIGN KEY`]({% link {{ page.version.version }}/foreign-key.md %}) constraints, but are restricted to the following subset of supported options. This restriction is necessary because we cannot allow the computed column value to change.
34+
- `ON UPDATE (NO ACTION|RESTRICT)`
35+
- `ON DELETE (NO ACTION|RESTRICT|CASCADE)`
3336

3437
Virtual computed columns:
3538

0 commit comments

Comments
 (0)