~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to plugin/show_dictionary/show_temporary_tables.cc

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.2.11) (2.1.16 sid)
  • Revision ID: package-import@ubuntu.com-20120619104649-9ij634mxm4x8pp4l
Tags: 1:7.1.36-stable-1ubuntu1
* Merge from Debian unstable. (LP: #987575)
  Remaining changes:
  - Added upstart script.
* debian/drizzle.upstart: dropped logger since upstart logs job
  output now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include <config.h>
22
22
 
23
23
#include <plugin/show_dictionary/dictionary.h>
 
24
#include <drizzled/open_tables_state.h>
24
25
 
25
26
using namespace std;
26
27
using namespace drizzled;
28
29
ShowTemporaryTables::ShowTemporaryTables() :
29
30
  show_dictionary::Show("SHOW_TEMPORARY_TABLES")
30
31
{
31
 
  add_field("TABLE_SCHEMA");
32
 
  add_field("TABLE_NAME");
 
32
  add_field("TABLE_SCHEMA", plugin::TableFunction::STRING, MAXIMUM_IDENTIFIER_LENGTH, false);
 
33
  add_field("TABLE_NAME", plugin::TableFunction::STRING, MAXIMUM_IDENTIFIER_LENGTH, false);
33
34
  add_field("RECORDS", plugin::TableFunction::NUMBER, 0, false);
34
35
  add_field("RECORD_LENGTH", plugin::TableFunction::NUMBER, 0, false);
35
36
  add_field("ENGINE");
39
40
  show_dictionary::Show::Generator(arg),
40
41
  session(getSession())
41
42
{
42
 
  table= session.getTemporaryTables();
 
43
  table= session.open_tables.getTemporaryTables();
43
44
}
44
45
 
45
46
bool ShowTemporaryTables::Generator::populate()