~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/db.cc

  • Committer: Monty Taylor
  • Date: 2009-12-21 03:44:51 UTC
  • mto: (1253.2.3 out-of-tree)
  • mto: This revision was merged to the branch mainline in revision 1250.
  • Revision ID: mordred@inaugust.com-20091221034451-hmztoep4qbaqne8w
Trims more out of server_includes.h.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include <drizzled/error.h>
26
26
#include <drizzled/gettext.h>
27
27
#include <mysys/hash.h>
 
28
#include "mystrings/m_string.h"
28
29
#include <drizzled/session.h>
29
30
#include <drizzled/db.h>
30
31
#include <drizzled/sql_base.h>
32
33
#include <drizzled/errmsg_print.h>
33
34
#include <drizzled/replication_services.h>
34
35
#include <drizzled/message/schema.pb.h>
 
36
#include "drizzled/sql_table.h"
35
37
 
36
38
using namespace std;
37
39
using namespace drizzled;
664
666
      table_list->table_name= strcpy(table_list->db, db) + db_len + 1;
665
667
      filename_to_tablename(file->name, table_list->table_name,
666
668
                            strlen(file->name) + 1);
667
 
      table_list->alias= table_list->table_name;        // If lower_case_table_names=2
668
 
      table_list->internal_tmp_table= is_prefix(file->name, TMP_FILE_PREFIX);
 
669
      table_list->alias= table_list->table_name;  // If lower_case_table_names=2
 
670
      table_list->internal_tmp_table= (strncmp(file->name,
 
671
                                               TMP_FILE_PREFIX,
 
672
                                               strlen(TMP_FILE_PREFIX)) == 0);
669
673
      /* Link into list */
670
674
      (*tot_list_next)= table_list;
671
675
      tot_list_next= &table_list->next_local;