~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/table_function.h

  • Committer: lbieber
  • Date: 2010-09-11 16:33:45 UTC
  • mfrom: (1757.1.2 build)
  • Revision ID: lbieber@orisndriz03-20100911163345-na1t8m18at9thsjl
Merge Vijay - added utf 8 tamil test case suite and test case for creating a database in tamil
Merge Brian - Small set of refactoring (includes one case of memset on a table object).

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 *
4
4
 *  Definitions required for TableFunction plugin
5
5
 *
6
 
 *  Copyright (C) 2010 Sun Microsystems, Inc.
 
6
 *  Copyright (C) 2010 Sun Microsystems
7
7
 *  Copyright (C) 2010 Monty Taylor
8
8
 *
9
9
 *  This program is free software; you can redistribute it and/or modify
35
35
#include <set>
36
36
#include <algorithm>
37
37
 
38
 
#include "drizzled/visibility.h"
39
 
 
40
38
namespace drizzled
41
39
{
42
40
 
 
41
extern int wild_case_compare(const CHARSET_INFO * const cs, 
 
42
                             const char *str,const char *wildstr);
 
43
 
43
44
namespace plugin
44
45
{
45
46
 
46
 
#define TABLE_FUNCTION_BLOB_SIZE 2049
47
 
 
48
47
// Not thread safe, but plugins are just loaded in a single thread right
49
48
// now.
50
49
static const char *local_string_append(const char *arg1, const char *arg2)
60
59
  return buffer;
61
60
}
62
61
 
63
 
class DRIZZLED_API TableFunction : public Plugin
 
62
class TableFunction : public Plugin
64
63
{
65
64
  TableFunction();
66
65
  TableFunction(const TableFunction &);
67
66
  TableFunction& operator=(const TableFunction &);
68
67
 
69
68
  message::Table proto;
70
 
  identifier::Table identifier;
 
69
  TableIdentifier identifier;
71
70
  std::string local_path;
72
71
  std::string original_table_label;
73
72
 
75
74
 
76
75
  void init();
77
76
 
78
 
 
79
77
public:
80
78
  TableFunction(const char *schema_arg, const char *table_arg) :
81
79
    Plugin(local_string_append(schema_arg, table_arg) , "TableFunction"),
98
96
    BOOLEAN,
99
97
    NUMBER,
100
98
    STRING,
101
 
    VARBINARY,
102
 
    SIZE
 
99
    VARBINARY
103
100
  };
104
101
 
105
102
  class Generator 
184
181
                 TableFunction::ColumnType type,
185
182
                 uint32_t field_length,
186
183
                 bool is_default_null= false);
187
 
 
188
 
  virtual bool visable() { return true; }
189
184
};
190
185
 
191
186
} /* namespace plugin */