~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/select_create.h

  • Committer: Monty Taylor
  • Date: 2010-04-15 19:14:53 UTC
  • mto: This revision was merged to the branch mainline in revision 1476.
  • Revision ID: mordred@inaugust.com-20100415191453-ril2x8qdo78fny9w
Replaced test_authz with a plugin implementing a hard-coded simple
multi-tennancy policy. The policy describes:
- A root user exists which can do anything
- A user may only see a schema that is named the same has his user name
- A user may see data_dictionary and information_schema (data_dictionary
  required for show databases to work)

This way, we can more clearly test the results of the authorization
interface while providing an optional plugin that is actually useful to some
human.

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;
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;
 
38
  DRIZZLE_LOCK **m_plock;
39
39
  TableIdentifier &identifier;
40
40
 
41
41
public:
67
67
 
68
68
  // Needed for access from local class MY_HOOKS in prepare(), since session is proteted.
69
69
  const Session *get_session(void) { return session; }
70
 
  const HA_CREATE_INFO *get_create_info() { return create_info; }
 
70
  const HA_CREATE_INFO *get_create_info() { return create_info; };
71
71
  int prepare2(void) { return 0; }
72
72
};
73
73