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:
None 
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
Description:
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`
1

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.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.