Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.3(EOL)
-
None
-
All
Description
MariaDB [d]> create table t2(a int , b int invisible default (a)); |
Query OK, 0 rows affected (0.01 sec) |
MariaDB [d]> insert into t2 values(2); |
Query OK, 1 row affected (0.00 sec) |
MariaDB [d]> select a,b from t2;
|
+------+------+
|
| a | b |
|
+------+------+
|
| 2 | NULL | |
+------+------+
|
1 row in set (0.00 sec) |
|
Attachments
Issue Links
- relates to
-
MDEV-25891 Computed default for INVISIBLE column is ignored in INSERT
-
- Closed
-
This issue if kind of related to how we get data for invisible fields, we kind of think it will be there (which is true in the case of constant default (share->default_values will have it)). but not true is default should be calculated dynamically.