Bug #73886 | bug #16832 only fixed in 5.0, fix never merged to later versions? | ||
---|---|---|---|
Submitted: | 11 Sep 2014 10:39 | Modified: | 12 Sep 2014 5:13 |
Reporter: | Hartmut Holzgraefe | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Information schema | Severity: | S3 (Non-critical) |
Version: | mysql 5.6.20; anything 5.x with x>0?, 5.1.73, 5.5.41, 5.6.22 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[11 Sep 2014 10:39]
Hartmut Holzgraefe
[12 Sep 2014 5:13]
MySQL Verification Team
Hello Hartmut, Thank you for the report. Thanks, Umesh
[12 Sep 2014 5:15]
MySQL Verification Team
// 5.0.96 - includes /* ALGORITHM.. in VIEW_DEFINITION column mysql> show variables like '%version%'; +-------------------------+------------------------------+ | Variable_name | Value | +-------------------------+------------------------------+ | protocol_version | 10 | | version | 5.0.96-log | | version_comment | MySQL Community Server (GPL) | | version_compile_machine | x86_64 | | version_compile_os | unknown-linux-gnu | +-------------------------+------------------------------+ 5 rows in set (0.00 sec) mysql> use test Database changed mysql> drop table if exists t1; ERROR 1051 (42S02): Unknown table 't1' mysql> create table t1(id int primary key); Query OK, 0 rows affected (0.00 sec) mysql> create algorithm=merge view v1 as select * from t1; Query OK, 0 rows affected (0.00 sec) mysql> create algorithm=temptable view v2 as select * from t1; Query OK, 0 rows affected (0.00 sec) mysql> select * from information_schema.views; +---------------+--------------+------------+----------------------------------------------------------------------------+--------------+--------------+----------------+---------------+ | TABLE_CATALOG | TABLE_SCHEMA | TABLE_NAME | VIEW_DEFINITION | CHECK_OPTION | IS_UPDATABLE | DEFINER | SECURITY_TYPE | +---------------+--------------+------------+----------------------------------------------------------------------------+--------------+--------------+----------------+---------------+ | NULL | test | v1 | /* ALGORITHM=MERGE */ select `test`.`t1`.`id` AS `id` from `test`.`t1` | NONE | YES | root@localhost | DEFINER | | NULL | test | v2 | /* ALGORITHM=TEMPTABLE */ select `test`.`t1`.`id` AS `id` from `test`.`t1` | NONE | NO | root@localhost | DEFINER | +---------------+--------------+------------+----------------------------------------------------------------------------+--------------+--------------+----------------+---------------+ 2 rows in set (0.01 sec) mysql> // 5.1.73, 5.5.41, 5.6.22 - /* ALGORITHM.. is missing in VIEW_DEFINITION column mysql> use test Database changed mysql> mysql> drop table if exists t1; Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> create table t1(id int primary key); Query OK, 0 rows affected (0.10 sec) mysql> create algorithm=merge view v1 as select * from t1; Query OK, 0 rows affected (0.07 sec) mysql> create algorithm=temptable view v2 as select * from t1; Query OK, 0 rows affected (0.07 sec) mysql> select * from information_schema.views; +---------------+--------------+------------+--------------------------------------------------+--------------+--------------+----------------+---------------+----------------------+----------------------+ | TABLE_CATALOG | TABLE_SCHEMA | TABLE_NAME | VIEW_DEFINITION | CHECK_OPTION | IS_UPDATABLE | DEFINER | SECURITY_TYPE | CHARACTER_SET_CLIENT | COLLATION_CONNECTION | +---------------+--------------+------------+--------------------------------------------------+--------------+--------------+----------------+---------------+----------------------+----------------------+ | NULL | test | v1 | select `test`.`t1`.`id` AS `id` from `test`.`t1` | NONE | YES | root@localhost | DEFINER | latin1 | latin1_swedish_ci | | NULL | test | v2 | select `test`.`t1`.`id` AS `id` from `test`.`t1` | NONE | NO | root@localhost | DEFINER | latin1 | latin1_swedish_ci | +---------------+--------------+------------+--------------------------------------------------+--------------+--------------+----------------+---------------+----------------------+----------------------+ 2 rows in set (0.01 sec)