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