~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/info_schema/helper_methods.cc

Remove PLUGIN and MODULES.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 *   Implementation of helper methods for I_S tables.
24
24
 */
25
25
 
26
 
#include "drizzled/server_includes.h"
 
26
#include "config.h"
27
27
#include "drizzled/session.h"
28
28
#include "drizzled/show.h"
29
29
#include "drizzled/sql_base.h"
30
30
#include "drizzled/plugin/client.h"
31
31
#include "drizzled/join_table.h"
32
 
 
 
32
#include "drizzled/global_charset_info.h"
 
33
#include "drizzled/pthread_globals.h"
 
34
#include "drizzled/internal/m_string.h"
 
35
#include "plugin/myisam/myisam.h" // needed for dflt_key_cache
33
36
#include "helper_methods.h"
34
37
 
35
38
#include <vector>
36
39
#include <string>
 
40
#include <sstream>
37
41
 
38
42
using namespace std;
39
43
using namespace drizzled;
47
51
bool show_status_array(Session *session, 
48
52
                       const char *wild,
49
53
                       SHOW_VAR *variables,
50
 
                       enum enum_var_type value_type,
 
54
                       sql_var_t value_type,
51
55
                       struct system_status_var *status_var,
52
56
                       const char *prefix, Table *table,
53
 
                       bool ucase_names,
 
57
                       bool ,
54
58
                       plugin::InfoSchemaTable *schema_table)
55
59
{
56
60
  MY_ALIGNED_BYTE_ARRAY(buff_data, SHOW_VAR_FUNC_BUFF_SIZE, int64_t);
72
76
  {
73
77
    strncpy(prefix_end, variables->name, len);
74
78
    name_buffer[sizeof(name_buffer)-1]=0;       /* Safety */
75
 
    if (ucase_names)
76
 
      make_upper(name_buffer);
77
79
 
78
80
    /*
79
81
      if var->type is SHOW_FUNC, call the function.
86
88
    if (show_type == SHOW_ARRAY)
87
89
    {
88
90
      show_status_array(session, wild, (SHOW_VAR *) var->value, value_type,
89
 
                        status_var, name_buffer, table, ucase_names, schema_table);
 
91
                        status_var, name_buffer, table, false, schema_table);
90
92
    }
91
93
    else
92
94
    {
179
181
          break;
180
182
        case SHOW_KEY_CACHE_LONGLONG:
181
183
          value= (char*) dflt_key_cache + (ulong)value;
182
 
          end= int64_t10_to_str(*(int64_t*) value, buff, 10);
183
 
          break;
 
184
          end= int64_t10_to_str(*(int64_t*) value, buff, 10);
 
185
          break;
184
186
        case SHOW_UNDEF:
185
187
          break;                                        // Return empty string
186
188
        case SHOW_SYS:                                  // Cannot happen