[MDEV-9307] DATA/INDEX DIRECTORY are not in information_schema.TABLES Created: 2015-12-20  Updated: 2016-02-23  Resolved: 2016-02-22

Status: Closed
Project: MariaDB Server
Component/s: Admin statements
Affects Version/s: 5.3.13, 5.5, 10.0, 10.1
Fix Version/s: 10.1.12

Type: Bug Priority: Major
Reporter: Federico Razzoli Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 0
Labels: information_schema, upstream

Sprint: 10.1.12

 Description   

DATA DIRECTORY and INDEX DIRECTORY are not stored in information_schema.TABLES.

MariaDB [_]> CREATE OR REPLACE TABLE test.t (c INT)
    -> ENGINE MyISAM
    -> DATA DIRECTORY '/tmp'
    -> INDEX DIRECTORY '/tmp'
    -> MIN_ROWS 1000;
Query OK, 0 rows affected (0.01 sec)
 
MariaDB [_]> SHOW CREATE TABLE test.t;
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------+
| Table | Create Table                                                                                                                                      |
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------+
| t     | CREATE TABLE `t` (
  `c` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 MIN_ROWS=1000 DATA DIRECTORY='/tmp/' INDEX DIRECTORY='/tmp/' |
+-------+---------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
 
MariaDB [_]> SELECT CREATE_OPTIONS FROM information_schema.TABLES
    -> WHERE TABLE_SCHEMA = 'test' AND TABLE_NAME = 't';
+----------------+
| CREATE_OPTIONS |
+----------------+
| min_rows=1000  |
+----------------+
1 row in set (0.00 sec)

I didn't check previous versions or MySQL.

If this is not a bug, please consider it as a feature request.



 Comments   
Comment by Elena Stepanova [ 2015-12-29 ]

I cannot find anything in the documentation that would justify it, so I would keep it as a bug report, at least for now.
It's also the same with MySQL (tried 5.7), but I couldn't find any upstream bug report about it. f_razzoli, do you want to create one?

Comment by Federico Razzoli [ 2015-12-29 ]

Ok, reported here:
http://bugs.mysql.com/bug.php?id=79789

Generated at Thu Feb 08 07:33:41 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.