~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/select_create.h

  • Committer: Joe Daly
  • Date: 2010-03-08 04:23:54 UTC
  • mto: This revision was merged to the branch mainline in revision 1380.
  • Revision ID: skinny.moey@gmail.com-20100308042354-7k0jibdqaxkhac7o
scoreboardĀ implementationĀ forĀ statistics

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
{
25
25
 
26
26
class select_create: public select_insert {
27
 
  Order *group;
 
27
  order_st *group;
28
28
  TableList *create_table;
29
29
  bool is_if_not_exists;
30
30
  HA_CREATE_INFO *create_info;
31
 
  message::Table &table_proto;
 
31
  message::Table *table_proto;
32
32
  TableList *select_tables;
33
33
  AlterInfo *alter_info;
34
34
  Field **field;
35
35
  /* lock data for tmp table */
36
 
  DrizzleLock *m_lock;
 
36
  DRIZZLE_LOCK *m_lock;
37
37
  /* m_lock or session->extra_lock */
38
 
  DrizzleLock **m_plock;
39
 
  TableIdentifier &identifier;
40
 
 
 
38
  DRIZZLE_LOCK **m_plock;
41
39
public:
42
40
  select_create (TableList *table_arg,
43
41
                 bool is_if_not_exists_arg,
44
42
                 HA_CREATE_INFO *create_info_par,
45
 
                 message::Table &proto,
 
43
                 message::Table *proto,
46
44
                 AlterInfo *alter_info_arg,
47
45
                 List<Item> &select_fields,enum_duplicates duplic, bool ignore,
48
 
                 TableList *select_tables_arg,
49
 
                 TableIdentifier &identifier_arg)
 
46
                 TableList *select_tables_arg)
50
47
    :select_insert (NULL, NULL, &select_fields, 0, 0, duplic, ignore),
51
48
    create_table(table_arg),
52
49
    is_if_not_exists(is_if_not_exists_arg),
54
51
    table_proto(proto),
55
52
    select_tables(select_tables_arg),
56
53
    alter_info(alter_info_arg),
57
 
    m_plock(NULL),
58
 
    identifier(identifier_arg)
 
54
    m_plock(NULL)
59
55
    {}
60
56
  int prepare(List<Item> &list, Select_Lex_Unit *u);
61
57
 
63
59
  void send_error(uint32_t errcode,const char *err);
64
60
  bool send_eof();
65
61
  void abort();
66
 
  virtual bool can_rollback_data() { return true; }
 
62
  virtual bool can_rollback_data() { return 1; }
67
63
 
68
64
  // Needed for access from local class MY_HOOKS in prepare(), since session is proteted.
69
65
  const Session *get_session(void) { return session; }
70
 
  const HA_CREATE_INFO *get_create_info() { return create_info; }
 
66
  const HA_CREATE_INFO *get_create_info() { return create_info; };
71
67
  int prepare2(void) { return 0; }
72
68
};
73
69