A better idea would be just to avoid reserved words as defined in http://dev.mysql.com/doc/refman/5.6/en/reserved-words.html. The current solution has too many assumptions on table names and allows only a specific set of unquoted table names.
A better idea would be just to avoid reserved words as defined in http:// dev.mysql. com/doc/ refman/ 5.6/en/ reserved- words.html. The current solution has too many assumptions on table names and allows only a specific set of unquoted table names.