Bug #79204 | INSERT INTO table from SELECT accepts to insert into generated columns | ||
---|---|---|---|
Submitted: | 10 Nov 2015 12:38 | Modified: | 1 Dec 2015 18:22 |
Reporter: | Olav Sandstå | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 5.7.10 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[10 Nov 2015 12:38]
Olav Sandstå
[10 Nov 2015 12:40]
Olav Sandstå
Posted by developer: The similar INSERT statement using VALUES to specify what to insert: INSERT INTO t1 (i1, i2) VALUES (5,6); returns an error: ERROR 3105 (HY000): The value specified for generated column 'i2' in table 't1' is not allowed.
[1 Dec 2015 18:22]
Paul DuBois
Noted in 5.7.11, 5.8.0 changelogs. INSERT INTO ... SELECT statements could insert values other than DEFAULT into generated columns.