~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/select_create.h

  • Committer: Lee Bieber
  • Date: 2010-01-30 23:42:02 UTC
  • mto: This revision was merged to the branch mainline in revision 1282.
  • Revision ID: lbieber@lee-biebers-macbook-pro.local-20100130234202-sxmqfteqwiq15ptg
add target to japanese tests

Show diffs side-by-side

added added

removed removed

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