~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/select_create.h

  • Committer: Brian Aker
  • Date: 2010-03-15 20:30:25 UTC
  • mto: This revision was merged to the branch mainline in revision 1342.
  • Revision ID: brian@gaz-20100315203025-byta5ien9r3c8pwo
Length usage of identifier down the tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
  DRIZZLE_LOCK *m_lock;
37
37
  /* m_lock or session->extra_lock */
38
38
  DRIZZLE_LOCK **m_plock;
 
39
  TableIdentifier &identifier;
 
40
 
39
41
public:
40
42
  select_create (TableList *table_arg,
41
43
                 bool is_if_not_exists_arg,
43
45
                 message::Table &proto,
44
46
                 AlterInfo *alter_info_arg,
45
47
                 List<Item> &select_fields,enum_duplicates duplic, bool ignore,
46
 
                 TableList *select_tables_arg)
 
48
                 TableList *select_tables_arg,
 
49
                 TableIdentifier &identifier_arg)
47
50
    :select_insert (NULL, NULL, &select_fields, 0, 0, duplic, ignore),
48
51
    create_table(table_arg),
49
52
    is_if_not_exists(is_if_not_exists_arg),
51
54
    table_proto(proto),
52
55
    select_tables(select_tables_arg),
53
56
    alter_info(alter_info_arg),
54
 
    m_plock(NULL)
 
57
    m_plock(NULL),
 
58
    identifier(identifier_arg)
55
59
    {}
56
60
  int prepare(List<Item> &list, Select_Lex_Unit *u);
57
61
 
59
63
  void send_error(uint32_t errcode,const char *err);
60
64
  bool send_eof();
61
65
  void abort();
62
 
  virtual bool can_rollback_data() { return 1; }
 
66
  virtual bool can_rollback_data() { return true; }
63
67
 
64
68
  // Needed for access from local class MY_HOOKS in prepare(), since session is proteted.
65
69
  const Session *get_session(void) { return session; }