Bug #69344 Incorrect variable in mysql_convert_table_format
Submitted: 29 May 2013 14:39 Modified: 31 May 2013 6:49
Reporter: Ilya Arkhipov Email Updates:
Status: Duplicate Impact on me:
Category:MySQL Server: Errors Severity:S3 (Non-critical)
Version:mysql-server-5.5.31 OS:FreeBSD
Assigned to: CPU Architecture:Any

[29 May 2013 14:39] Ilya Arkhipov
Incorrect variable in mysql_convert_table_format
We can't use not default engine, because not receive data from user.

in the code we have:
27 $opt_engine="MYISAM";
but receive from user:
32 "e|engine|type=s"       => \$opt_type,

$ grep -c opt_type `which mysql_convert_table_format`

How to repeat:
mysql_convert_table_format --engine=INNODB

Suggested fix:
sed -i "" "s#_type#_engine#" `which mysql_convert_table_format`
[31 May 2013 6:11] Valeriy Kravchuk
This is easy to verify by code review...
[31 May 2013 6:30] Ilya Arkhipov
or start write with strict :)
[31 May 2013 6:46] Nirbhay Choubey
Duplicate of Bug#48942.