278
278
// A normal table
280
str->append_identifier(db, db_length);
283
str->append_identifier(table_name, table_name_length);
279
str->append_identifier(str_ref(schema));
281
str->append_identifier(str_ref(table_name));
284
282
cmp_name= table_name;
286
if (my_strcasecmp(table_alias_charset, cmp_name, alias))
284
if (my_strcasecmp(table_alias_charset, cmp_name, alias) && alias && alias[0])
289
if (alias && alias[0])
292
string t_alias(alias);
293
boost::to_lower(t_alias);
294
str->append_identifier(t_alias);
287
str->append_identifier(boost::to_lower_copy(string(alias)));