Bug #248 Creating a table of non-existent type creates a MyISAM table

Submitted: 8 Apr 2003 4:51 Modified: 9 Apr 2003 7:33
Reporter: Indrek Siitan Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:4.0 OS:Any (any)
Assigned to: CPU Architecture:Any

[8 Apr 2003 4:51] Indrek Siitan
Description:
When trying to create a table of type that doesn't exist, a MyISAM table is created instead of issuing an error.

How to repeat:
mysql> select version();+-----------------+
| version()       |
+-----------------+
| 4.0.12-standard |
+-----------------+
1 row in set (0.00 sec)

mysql> show variables like 'have_innodb';
+---------------+----------+
| Variable_name | Value    |
+---------------+----------+
| have_innodb   | DISABLED |
+---------------+----------+
1 row in set (0.00 sec)

mysql> create table innodb (
    ->   id int primary key auto_increment,
    ->   fk int,
    ->   index index_fk (fk)
    -> ) type=innodb;
Query OK, 0 rows affected (0.01 sec)

mysql> show table status like 'innodb' \G
*************************** 1. row ***************************
           Name: innodb
           Type: MyISAM
     Row_format: Fixed
           Rows: 0
 Avg_row_length: 0
    Data_length: 0
Max_data_length: 38654705663
   Index_length: 1024
      Data_free: 0
 Auto_increment: 1
    Create_time: 2003-04-08 14:50:59
    Update_time: 2003-04-08 14:50:59
     Check_time: NULL
 Create_options: 
        Comment: 
1 row in set (0.00 sec)

Suggested fix:
Issue an error.
[9 Apr 2003 7:33] Sergei Golubchik
not a bug.
Monty wants it that way.

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

Page generated in 0.037 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.