MariaDB [test]> CREATE TABLE t1 (i int) ENGINE=InnoDB TRANSACTIONAL=0;
|
Query OK, 0 rows affected, 1 warning (0.034 sec)
|
|
Warning (Code 1478): Table storage engine 'InnoDB' does not support the create option 'TRANSACTIONAL=1'
|
MariaDB [test]> optimize table t1;
|
+---------+----------+----------+------------------------------------------------------------------------------------+
|
| Table | Op | Msg_type | Msg_text |
|
+---------+----------+----------+------------------------------------------------------------------------------------+
|
| test.t1 | optimize | note | Table does not support optimize, doing recreate + analyze instead |
|
| test.t1 | optimize | error | Table storage engine 'InnoDB' does not support the create option 'TRANSACTIONAL=1' |
|
| test.t1 | optimize | status | Operation failed |
|
+---------+----------+----------+------------------------------------------------------------------------------------+
|
3 rows in set, 1 warning (0.001 sec)
|
|
Error (Code 1478): Table storage engine 'InnoDB' does not support the create option 'TRANSACTIONAL=1'
|
MariaDB [test]> alter table t1 force;
|
ERROR 1478 (HY000): Table storage engine 'InnoDB' does not support the create option 'TRANSACTIONAL=1'
|
|
MariaDB [test]> show variables like 'sql_mode';
|
+---------------+-------------------------------------------------------------------------------------------+
|
| Variable_name | Value |
|
+---------------+-------------------------------------------------------------------------------------------+
|
| sql_mode | STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION |
|
+---------------+-------------------------------------------------------------------------------------------+
|
1 row in set (0.002 sec)
|
|
MariaDB [test]> set sql_mode='ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
|
Query OK, 0 rows affected (0.000 sec)
|
|
MariaDB [test]> optimize table t1;
|
+---------+----------+----------+-------------------------------------------------------------------+
|
| Table | Op | Msg_type | Msg_text |
|
+---------+----------+----------+-------------------------------------------------------------------+
|
| test.t1 | optimize | note | Table does not support optimize, doing recreate + analyze instead |
|
| test.t1 | optimize | status | OK |
|
+---------+----------+----------+-------------------------------------------------------------------+
|
2 rows in set, 1 warning (0.076 sec)
|
|
Warning (Code 1478): Table storage engine 'InnoDB' does not support the create option 'TRANSACTIONAL=1'
|