~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/function_engine/function.cc

  • Committer: Brian Aker
  • Date: 2011-02-17 10:09:00 UTC
  • mfrom: (2173.2.1 clean-include-usuage)
  • Revision ID: brian@tangent.org-20110217100900-4tpuxxzdl1sj00sh
Merge Monty for headers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#include "config.h"
 
21
#include <config.h>
22
22
 
23
23
#include <plugin/function_engine/function.h>
24
24
#include <plugin/function_engine/cursor.h>
39
39
 
40
40
{
41
41
  information_message->set_name(INFORMATION_SCHEMA_IDENTIFIER.getSchemaName());
42
 
  data_dictionary_message->set_collation("utf8_general_ci");
 
42
  information_message->set_collation("utf8_general_ci");
 
43
  information_message->mutable_replication_options()->set_dont_replicate(true);
43
44
 
44
45
  data_dictionary_message->set_name(DATA_DICTIONARY_IDENTIFIER.getSchemaName());
45
46
  data_dictionary_message->set_collation("utf8_general_ci");
 
47
  data_dictionary_message->mutable_replication_options()->set_dont_replicate(true);
46
48
}
47
49
 
48
50
 
73
75
  schemas.push_back(DATA_DICTIONARY_IDENTIFIER);
74
76
}
75
77
 
76
 
bool Function::doGetSchemaDefinition(const identifier::Schema &schema_identifier, message::schema::shared_ptr &schema_message)
 
78
drizzled::message::schema::shared_ptr Function::doGetSchemaDefinition(const identifier::Schema &schema_identifier)
77
79
{
78
 
  schema_message.reset(new message::Schema); // This should be fixed, we could just be using ones we built on startup.
 
80
  drizzled::message::schema::shared_ptr schema_message;
79
81
 
80
82
  if (schema_identifier == INFORMATION_SCHEMA_IDENTIFIER)
81
83
  {
87
89
  }
88
90
  else
89
91
  {
90
 
    return false;
 
92
    return drizzled::message::schema::shared_ptr();
91
93
  }
92
94
 
93
 
  return true;
 
95
  return schema_message;
94
96
}
95
97
 
96
98
bool Function::doCanCreateTable(const drizzled::identifier::Table &table_identifier)