604
604
const char *ext= strchr(filename->c_str(), '.');
606
if (ext == NULL || system_charset_info->strcasecmp(ext, DEFAULT_FILE_EXTENSION) ||
606
if (ext == NULL || my_strcasecmp(system_charset_info, ext, DEFAULT_FILE_EXTENSION) ||
607
607
(filename->compare(0, strlen(TMP_FILE_PREFIX), TMP_FILE_PREFIX) == 0))
1324
1324
const char* a, /*!< in: first string to compare */
1325
1325
const char* b) /*!< in: second string to compare */
1327
return(system_charset_info->strcasecmp(a, b));
1327
return(my_strcasecmp(system_charset_info, a, b));
1330
1330
/******************************************************************//**
7846
7846
mutex_enter(&(dict_sys->mutex));
7847
7847
dict_foreign_t* foreign = UT_LIST_GET_FIRST(prebuilt->table->foreign_list);
7849
while (foreign != NULL)
7849
while (foreign != NULL) {
7852
7852
char uname[NAME_LEN + 1]; /* Unencoded name */
7853
7853
char db_name[NAME_LEN + 1];
7893
7894
if (foreign->type & DICT_FOREIGN_ON_DELETE_CASCADE)
7894
7897
tmp_buff= "CASCADE";
7895
7899
else if (foreign->type & DICT_FOREIGN_ON_DELETE_SET_NULL)
7896
7902
tmp_buff= "SET NULL";
7897
7904
else if (foreign->type & DICT_FOREIGN_ON_DELETE_NO_ACTION)
7898
7907
tmp_buff= "NO ACTION";
7900
7912
tmp_buff= "RESTRICT";
7901
lex_string_t *tmp_delete_method = session->make_lex_string(NULL, str_ref(tmp_buff));
7914
lex_string_t *tmp_delete_method = session->make_lex_string(NULL, str_ref(tmp_buff, length));
7903
7917
if (foreign->type & DICT_FOREIGN_ON_UPDATE_CASCADE)
7904
7920
tmp_buff= "CASCADE";
7905
7922
else if (foreign->type & DICT_FOREIGN_ON_UPDATE_SET_NULL)
7906
7925
tmp_buff= "SET NULL";
7907
7927
else if (foreign->type & DICT_FOREIGN_ON_UPDATE_NO_ACTION)
7908
7930
tmp_buff= "NO ACTION";
7910
7935
tmp_buff= "RESTRICT";
7911
lex_string_t *tmp_update_method = session->make_lex_string(NULL, str_ref(tmp_buff));
7913
lex_string_t *tmp_referenced_key_name = foreign->referenced_index && foreign->referenced_index->name
7914
? session->make_lex_string(NULL, str_ref(foreign->referenced_index->name))
7937
lex_string_t *tmp_update_method = session->make_lex_string(NULL, str_ref(tmp_buff, length));
7939
lex_string_t *tmp_referenced_key_name = NULL;
7941
if (foreign->referenced_index && foreign->referenced_index->name)
7943
tmp_referenced_key_name = session->make_lex_string(NULL, str_ref(foreign->referenced_index->name));
7917
7946
ForeignKeyInfo f_key_info(
7918
tmp_foreign_id, tmp_referenced_db, tmp_referenced_table,
7919
tmp_update_method, tmp_delete_method, tmp_referenced_key_name,
7920
tmp_foreign_fields, tmp_referenced_fields);
7947
tmp_foreign_id, tmp_referenced_db, tmp_referenced_table,
7948
tmp_update_method, tmp_delete_method, tmp_referenced_key_name,
7949
tmp_foreign_fields, tmp_referenced_fields);
7922
7951
f_key_list->push_back((ForeignKeyInfo*)session->mem.memdup(&f_key_info, sizeof(ForeignKeyInfo)));
7923
7952
foreign = UT_LIST_GET_NEXT(foreign_list, foreign);