~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/table_cache_dictionary/table_cache.cc

  • Committer: Brian Aker
  • Date: 2010-03-16 17:52:35 UTC
  • Revision ID: brian@gaz-20100316175235-hp5cuqqx1aewadrv
Update/fix for leak.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
  add_field("SESSION_ID", plugin::TableFunction::NUMBER);
34
34
  add_field("TABLE_SCHEMA");
35
35
  add_field("TABLE_NAME");
36
 
  add_field("ARCHETYPE");
37
 
  add_field("ENGINE");
38
36
  add_field("VERSION", plugin::TableFunction::NUMBER);
39
37
  add_field("IS_NAME_LOCKED", plugin::TableFunction::BOOLEAN);
40
38
  add_field("ROWS", plugin::TableFunction::NUMBER);
112
110
{
113
111
  /**
114
112
    For test cases use:
115
 
    --replace_column 1 #  6 # 8 # 9 # 10 # 11 #
 
113
    --replace_column 1 # 4 # 5 #  6 # 8 # 9 #
116
114
  */
117
115
 
118
116
  /* SESSION_ID 1 */
126
124
  push(table->getShare()->getSchemaName(arg));
127
125
 
128
126
  /* TABLE_NAME  3 */
129
 
  push(table->getShare()->getTableName());
130
 
 
131
 
  /* ARCHETYPE  4 */
132
 
  push(table->getShare()->getTableTypeAsString());
133
 
 
134
 
  /* ENGINE 5 */
135
 
  push(table->getEngine()->getName());
136
 
 
137
 
  /* VERSION 6 */
 
127
  push(table->getShare()->getTableName(arg));
 
128
 
 
129
  /* VERSION 4 */
138
130
  push(static_cast<int64_t>(table->getShare()->version));
139
131
 
140
 
  /* IS_NAME_LOCKED 7 */
 
132
  /* IS_NAME_LOCKED 5 */
141
133
  push(table->getShare()->isNameLock());
142
134
 
143
 
  /* ROWS 8 */
 
135
  /* ROWS 6 */
144
136
  push(static_cast<uint64_t>(table->getCursor().records()));
145
137
 
146
 
  /* AVG_ROW_LENGTH 9 */
 
138
  /* AVG_ROW_LENGTH 7 */
147
139
  push(table->getCursor().rowSize());
148
140
 
149
 
  /* TABLE_SIZE 10 */
 
141
  /* TABLE_SIZE 8 */
150
142
  push(table->getCursor().tableSize());
151
143
 
152
 
  /* AUTO_INCREMENT 11 */
 
144
  /* AUTO_INCREMENT 9 */
153
145
  push(table->getCursor().getNextInsertId());
154
146
}