~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/function_engine/function.h

  • Committer: Lee Bieber
  • Date: 2010-10-22 16:47:38 UTC
  • mfrom: (1841.1.7 drizzle_pbms)
  • Revision ID: kalebral@gmail.com-20101022164738-vv8w22b8towpb307
Merge Barry - fix bug 657830: PBMS build failure in GCC 4.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2009 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2009 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
35
35
 
36
36
class Function : public drizzled::plugin::StorageEngine
37
37
{
38
 
  drizzled::message::schema::shared_ptr information_message;
39
 
  drizzled::message::schema::shared_ptr data_dictionary_message;
 
38
  drizzled::message::SchemaPtr information_message;
 
39
  drizzled::message::SchemaPtr data_dictionary_message;
40
40
 
41
41
public:
42
42
  Function(const std::string &name_arg);
48
48
 
49
49
  int doCreateTable(drizzled::Session&,
50
50
                    drizzled::Table&,
51
 
                    const drizzled::identifier::Table &,
 
51
                    const drizzled::TableIdentifier &,
52
52
                    drizzled::message::Table&)
53
53
  {
54
 
    return drizzled::ER_TABLE_PERMISSION_DENIED;
 
54
    return EPERM;
55
55
  }
56
56
 
57
 
  int doDropTable(drizzled::Session&, const drizzled::identifier::Table&)
 
57
  int doDropTable(drizzled::Session&, const drizzled::TableIdentifier&)
58
58
  { 
59
 
    return drizzled::HA_ERR_NO_SUCH_TABLE; 
 
59
    return EPERM; 
60
60
  }
61
61
 
62
 
  virtual drizzled::Cursor *create(drizzled::Table &table);
 
62
  virtual drizzled::Cursor *create(drizzled::TableShare &table);
63
63
 
64
64
  const char **bas_ext() const 
65
65
  {
71
71
    return drizzled::plugin::TableFunction::getFunction(path);
72
72
  }
73
73
 
74
 
  bool doCanCreateTable(const drizzled::identifier::Table &identifier);
 
74
  bool doCanCreateTable(const drizzled::TableIdentifier &identifier);
75
75
 
76
76
 
77
77
  int doGetTableDefinition(drizzled::Session &session,
78
 
                           const drizzled::identifier::Table &identifier,
 
78
                           const drizzled::TableIdentifier &identifier,
79
79
                           drizzled::message::Table &table_message);
80
80
 
81
 
  void doGetSchemaIdentifiers(drizzled::identifier::Schema::vector&);
82
 
 
83
 
  bool doDoesTableExist(drizzled::Session& session, const drizzled::identifier::Table &identifier);
84
 
 
85
 
  bool doGetSchemaDefinition(const drizzled::identifier::Schema &schema, drizzled::message::schema::shared_ptr &schema_message);
86
 
 
87
 
  int doRenameTable(drizzled::Session&, const drizzled::identifier::Table &, const drizzled::identifier::Table &)
 
81
  void doGetSchemaIdentifiers(drizzled::SchemaIdentifiers&);
 
82
 
 
83
  bool doDoesTableExist(drizzled::Session& session, const drizzled::TableIdentifier &identifier);
 
84
 
 
85
  bool doGetSchemaDefinition(const drizzled::SchemaIdentifier &schema, drizzled::message::SchemaPtr &schema_message);
 
86
 
 
87
  int doRenameTable(drizzled::Session&, const drizzled::TableIdentifier &, const drizzled::TableIdentifier &)
88
88
  {
89
89
    return EPERM;
90
90
  }
91
91
 
92
92
  void doGetTableIdentifiers(drizzled::CachedDirectory &directory,
93
 
                             const drizzled::identifier::Schema &schema_identifier,
94
 
                             drizzled::identifier::Table::vector &set_of_identifiers);
 
93
                             const drizzled::SchemaIdentifier &schema_identifier,
 
94
                             drizzled::TableIdentifiers &set_of_identifiers);
95
95
};
96
96
 
97
97
#endif /* PLUGIN_FUNCTION_ENGINE_FUNCTION_H */