~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.cc

  • Committer: Brian Aker
  • Date: 2009-05-28 00:15:58 UTC
  • mfrom: (1039.1.7 merge)
  • Revision ID: brian@gaz-20090528001558-xychs3xtpg8wz5i8
MErge Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
134
134
 
135
135
  path_length= build_table_filename(path, sizeof(path) - 1,
136
136
                                    table_list->db,
137
 
                                    table_list->table_name, "", 0);
 
137
                                    table_list->table_name, false);
138
138
  init_sql_alloc(&mem_root, TABLE_ALLOC_BLOCK_SIZE, 0);
139
139
  if (multi_alloc_root(&mem_root,
140
140
                       &share, sizeof(*share),
2096
2096
    check_db_name()
2097
2097
    org_name            Name of database and length
2098
2098
 
2099
 
  NOTES
2100
 
    If lower_case_table_names is set then database is converted to lower case
2101
 
 
2102
2099
  RETURN
2103
2100
    0   ok
2104
2101
    1   error
2112
2109
  if (!name_length || name_length > NAME_LEN || name[name_length - 1] == ' ')
2113
2110
    return 1;
2114
2111
 
2115
 
  if (lower_case_table_names && name != any_db)
 
2112
  if (name != any_db)
2116
2113
    my_casedn_str(files_charset_info, name);
2117
2114
 
2118
2115
  return check_identifier_name(org_name);
3180
3177
create_tmp_table(Session *session,Tmp_Table_Param *param,List<Item> &fields,
3181
3178
                 order_st *group, bool distinct, bool save_sum_fields,
3182
3179
                 uint64_t select_options, ha_rows rows_limit,
3183
 
                 char *table_alias)
 
3180
                 const char *table_alias)
3184
3181
{
3185
3182
  MEM_ROOT *mem_root_save, own_root;
3186
3183
  Table *table;