Bug #88741 | Unnecessary AS clause is set for Expression of virtual column | ||
---|---|---|---|
Submitted: | 4 Dec 2017 9:53 | Modified: | 14 Dec 2018 8:09 |
Reporter: | 高木 祐介 | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: DDL | Severity: | S3 (Non-critical) |
Version: | 5.7.19, 5.7.20 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | column name, virtual column |
[4 Dec 2017 9:53]
高木 祐介
[4 Dec 2017 12:58]
MySQL Verification Team
Hello! Thank you for the report and test case. Quoting from our manual "Subqueries, parameters, variables, stored functions, and user-defined functions are not permitted." with that it should not have allowed to use at first place and later "AS" sounds odd too. Thanks, Umesh
[4 Dec 2017 13:48]
高木 祐介
Hi.Umesh Shastry! I found it!thank you. https://dev.mysql.com/doc/refman/5.7/en/create-table-generated-columns.html I misunderstood reading the Mysql Server Blog instead of the manual. The mechanism of UDF Virtual Columns is very convenient and it runs faster than Triger and Update, so patch it if possible and do not want to disable the function. Mysql Server Blog http://mysqlserverteam.com/virtual-columns-and-effective-functional-indexes-in-innodb/
[14 Dec 2018 8:09]
高木 祐介
Because it turned out that recognition was wrong, Close