~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/registry_dictionary/modules.cc

Merged embedded-innodb-write-row into embedded-innodb-rnd-read.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
using namespace std;
27
27
using namespace drizzled;
28
28
 
29
 
static const string GPL("GPL");
30
 
static const string LGPL("LGPL");
31
 
static const string BSD("BSD");
32
 
static const string PROPRIETARY("PROPRIETARY");
 
29
/* 
 
30
 * Suffix _STRING was added because sys/param.h on OSX defines a BSD symbol
 
31
 * to the version of BSD being run. FAIL
 
32
 */
 
33
static const string GPL_STRING("GPL");
 
34
static const string LGPL_STRING("LGPL");
 
35
static const string BSD_STRING("BSD");
 
36
static const string PROPRIETARY_STRING("PROPRIETARY");
33
37
 
34
38
ModulesTool::ModulesTool() :
35
39
  plugin::TableFunction("DATA_DICTIONARY", "MODULES")
81
85
    /* MODULE_LICENSE */
82
86
    switch (manifest.license) {
83
87
    case PLUGIN_LICENSE_GPL:
84
 
      push(GPL);
 
88
      push(GPL_STRING);
85
89
      break;
86
90
    case PLUGIN_LICENSE_BSD:
87
 
      push(BSD);
 
91
      push(BSD_STRING);
88
92
      break;
89
93
    case PLUGIN_LICENSE_LGPL:
90
 
      push(LGPL);
 
94
      push(LGPL_STRING);
91
95
      break;
92
96
    default:
93
 
      push(PROPRIETARY);
 
97
      push(PROPRIETARY_STRING);
94
98
      break;
95
99
    }
96
100
  }