Bug #76635 IMPROPER ERROR DURING CREATE TABLE
Submitted: 9 Apr 2015 10:05 Modified: 19 Jan 2016 17:51
Reporter: ADITYA ANANTHAPADMANABHA Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: DDL Severity:S3 (Non-critical)
Version:5.5.44 OS:Any
Assigned to: CPU Architecture:Any

[9 Apr 2015 10:05] ADITYA ANANTHAPADMANABHA
Description:
CREATE TABLE test.t1 (id INTEGER) engine=myisam   
INDEX DIRECTORY ='a#######################################################
b######################################################################################
b######################################################################################
b######################################################################################
b######################################################################################
b######################################################################################
b######################################################################################
b######################################################################################
b######################################################################################
b######################################################################################
b######################################################################################
b######################################################################################
b######################################################################################
b######################################################################################
b######################################################################################
b######################################################################################
b######################################################################################
b######################################################################################
b######################################################################################';

gives error 

ERROR 42000: Incorrect table name 'a#######################################################
b##########################################'

Table name is 't1' ideally it should give ER_PATH_LENGTH

How to repeat:
As described above 

Suggested fix:
Make it return ER_PATH_LENGTH
[19 Jan 2016 17:51] Paul DuBois
Fixed in 5.8.0 changelog.

CREATE TABLE reported an incorrect error if a very long or incorrect
path name was specified for the DATA DIRECTORY or INDEX DIRECTORY
table option. Now ER_PATH_LENGTH or ER_WRONG_VALUE are reported for
those cases.