~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/select_export.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:
29
29
namespace drizzled
30
30
{
31
31
 
32
 
class select_export :
33
 
  public select_to_file
34
 
{
 
32
class select_export :public select_to_file {
35
33
  uint32_t field_term_length;
36
34
  int field_sep_char,escape_char,line_sep_char;
37
35
  int field_term_char; // first char of FIELDS TERMINATED BY or MAX_INT
55
53
  bool is_unsafe_field_sep;
56
54
  bool fixed_row_size;
57
55
public:
58
 
  select_export(file_exchange *ex) :
59
 
    select_to_file(ex),
60
 
    field_term_length(0),
61
 
    field_sep_char(0),
62
 
    escape_char(0),
63
 
    line_sep_char(0),
64
 
    field_term_char(0),
65
 
    is_ambiguous_field_sep(0),
66
 
    is_ambiguous_field_term(0),
67
 
    is_unsafe_field_sep(0),
68
 
    fixed_row_size(0)
69
 
  {}
 
56
  select_export(file_exchange *ex) :select_to_file(ex) {}
70
57
  ~select_export();
71
58
  int prepare(List<Item> &list, Select_Lex_Unit *u);
72
59
  bool send_data(List<Item> &items);