~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field_iterator.cc

  • Committer: Padraig O'Sullivan
  • Date: 2009-09-13 01:03:01 UTC
  • mto: (1126.9.2 captain-20090915-01)
  • mto: This revision was merged to the branch mainline in revision 1133.
  • Revision ID: osullivan.padraig@gmail.com-20090913010301-tcvvezipx1124acy
Added calls to the dtrace delete begin/end probes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include "config.h"
 
20
#include <drizzled/server_includes.h>
21
21
#include <drizzled/field_iterator.h>
22
22
#include <drizzled/table_list.h>
23
23
#include <drizzled/session.h>
24
24
#include <drizzled/table.h>
25
25
 
26
 
namespace drizzled
27
 
{
28
 
 
29
26
const char *Field_iterator_table::name()
30
27
{
31
28
  return (*ptr)->field_name;
141
138
 
142
139
  /*
143
140
    Test that TableList::db is the same as TableShare::db to
144
 
    ensure consistency. 
 
141
    ensure consistency. An exception are I_S schema tables, which
 
142
    are inconsistent in this respect.
145
143
  */
146
 
  assert(!strcmp(table_ref->db, table_ref->table->s->getSchemaName()));
 
144
  assert(!strcmp(table_ref->db, table_ref->table->s->db.str) ||
 
145
              (table_ref->schema_table &&
 
146
               table_ref->table->s->db.str[0] == 0));
 
147
 
147
148
  return table_ref->db;
148
149
}
149
150
 
284
285
  return nj_col;
285
286
}
286
287
 
287
 
} /* namespace drizzled */