~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pbms/src/ha_pbms.cc

  • Committer: Brian Aker
  • Date: 2011-01-17 23:44:48 UTC
  • mfrom: (2088.1.5 drizzle-build)
  • Revision ID: brian@tangent.org-20110117234448-0tt6rd6fxa3csdaf
Rollup of all changes for identifier/error

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
        int doCommit(Session *, bool);
115
115
        int doRollback(Session *, bool);
116
116
        Cursor *create(Table& table);
117
 
        bool doDropSchema(const drizzled::SchemaIdentifier&);
 
117
        bool doDropSchema(const drizzled::identifier::Schema&);
118
118
        
119
119
        /*
120
120
        * Indicates to a storage engine the start of a
135
135
                (void) session;
136
136
        }
137
137
        
138
 
        int doCreateTable(Session&, Table&, const TableIdentifier& ident, drizzled::message::Table& );  
139
 
        int doDropTable(Session &, const TableIdentifier& );
 
138
        int doCreateTable(Session&, Table&, const identifier::Table& ident, drizzled::message::Table& );        
 
139
        int doDropTable(Session &, const identifier::Table& );
140
140
        
141
 
        int doRenameTable(Session&, const TableIdentifier &from, const TableIdentifier &to);
 
141
        int doRenameTable(Session&, const identifier::Table &from, const identifier::Table &to);
142
142
        
143
143
        void doGetTableIdentifiers(drizzled::CachedDirectory &dir,
144
 
                                   const drizzled::SchemaIdentifier &schema,
145
 
                                   drizzled::TableIdentifier::vector &set_of_identifiers) 
 
144
                                   const drizzled::identifier::Schema &schema,
 
145
                                   drizzled::identifier::Table::vector &set_of_identifiers) 
146
146
        {
147
147
                std::set<std::string> set_of_names;
148
148
                
149
149
                doGetTableNames(dir, schema, set_of_names);
150
150
                for (std::set<std::string>::iterator set_iter = set_of_names.begin(); set_iter != set_of_names.end(); ++set_iter)
151
151
                {
152
 
                        set_of_identifiers.push_back(TableIdentifier(schema, *set_iter));
 
152
                        set_of_identifiers.push_back(identifier::Table(schema, *set_iter));
153
153
                }
154
154
        }
155
155
        
156
156
        void doGetTableNames(CachedDirectory&, 
157
 
                                        const SchemaIdentifier &schema, 
 
157
                                        const identifier::Schema &schema, 
158
158
                                        std::set<std::string> &set_of_names) 
159
159
        {
160
160
                bool isPBMS = schema.compare("PBMS");
168
168
        int doReleaseSavepoint(Session *session, NamedSavepoint &savepoint);
169
169
        const char **bas_ext() const;
170
170
 
171
 
  int doGetTableDefinition(Session&, const TableIdentifier &identifier,
 
171
  int doGetTableDefinition(Session&, const identifier::Table &identifier,
172
172
                                          drizzled::message::Table &table_proto)
173
173
  {
174
174
                int err;
186
186
                return EEXIST;
187
187
  }
188
188
 
189
 
        bool doDoesTableExist(Session&, const TableIdentifier &identifier)
 
189
        bool doDoesTableExist(Session&, const identifier::Table &identifier)
190
190
        {
191
191
                const char *tab_name = identifier.getTableName().c_str();
192
192
                const char *db_name = identifier.getSchemaName().c_str();
434
434
#endif
435
435
 
436
436
#ifdef DRIZZLED
437
 
bool  PBMSStorageEngine::doDropSchema(const drizzled::SchemaIdentifier &schema)
 
437
bool  PBMSStorageEngine::doDropSchema(const drizzled::identifier::Schema &schema)
438
438
{
439
439
        CSThread *self;
440
440
        PBMSResultRec result;
1043
1043
 
1044
1044
 
1045
1045
#ifdef DRIZZLED
1046
 
int PBMSStorageEngine::doCreateTable(Session&, Table&, const TableIdentifier& , drizzled::message::Table& )
 
1046
int PBMSStorageEngine::doCreateTable(Session&, Table&, const identifier::Table& , drizzled::message::Table& )
1047
1047
{
1048
1048
        /* You cannot create PBMS tables. */
1049
1049
        return( HA_ERR_WRONG_COMMAND );
1050
1050
}
1051
1051
 
1052
 
int PBMSStorageEngine::doDropTable(Session &, const TableIdentifier& )
 
1052
int PBMSStorageEngine::doDropTable(Session &, const identifier::Table& )
1053
1053
{
1054
1054
        /* You cannot delete PBMS tables. */
1055
1055
        return( 0 );
1056
1056
}
1057
1057
 
1058
 
int PBMSStorageEngine::doRenameTable(Session&, const TableIdentifier &, const TableIdentifier &)
 
1058
int PBMSStorageEngine::doRenameTable(Session&, const identifier::Table &, const identifier::Table &)
1059
1059
{
1060
1060
        /* You cannot rename PBMS tables. */
1061
1061
        return( HA_ERR_WRONG_COMMAND );