~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/db.cc

  • Committer: Stewart Smith
  • Date: 2009-03-03 07:20:52 UTC
  • mto: (910.4.2 sparc) (908.3.6 work)
  • mto: This revision was merged to the branch mainline in revision 912.
  • Revision ID: stewart@flamingspork.com-20090303072052-tm5k7m1oh4oz9kbu
Remove MYSQL50_TABLE_NAME_PREFIX.

not needed for drizzle.

Show diffs side-by-side

added added

removed removed

Lines of Context:
665
665
      TableList *table_list=(TableList*)
666
666
                              session->calloc(sizeof(*table_list) +
667
667
                                          db_len + 1 +
668
 
                                          MYSQL50_TABLE_NAME_PREFIX_LENGTH +
669
668
                                          strlen(file->name) + 1);
670
669
 
671
670
      if (!table_list)
673
672
      table_list->db= (char*) (table_list+1);
674
673
      table_list->table_name= strcpy(table_list->db, db) + db_len + 1;
675
674
      filename_to_tablename(file->name, table_list->table_name,
676
 
                            MYSQL50_TABLE_NAME_PREFIX_LENGTH +
677
675
                            strlen(file->name) + 1);
678
676
      table_list->alias= table_list->table_name;        // If lower_case_table_names=2
679
677
      table_list->internal_tmp_table= is_prefix(file->name, TMP_FILE_PREFIX);