~stewart/drizzle/embedded-innodb-create-table-with-index

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Stewart Smith
  • Date: 2010-03-11 01:15:57 UTC
  • mfrom: (1319.1.29)
  • Revision ID: stewart@flamingspork.com-20100311011557-49r2ye69bqh4abti
Merged embedded-innodb-rnd-read into embedded-innodb-create-table-with-index.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
#include <drizzled/internal_error_handler.h>
49
49
#include <drizzled/diagnostics_area.h>
50
50
 
 
51
#include <drizzled/plugin/authorization.h>
 
52
 
51
53
#define MIN_HANDSHAKE_SIZE      6
52
54
 
53
55
namespace drizzled
73
75
class CopyField;
74
76
class Table_ident;
75
77
 
76
 
 
77
78
extern char internal_table_name[2];
78
79
extern char empty_c_string[1];
79
80
extern const char **errmesg;
478
479
  }
479
480
 
480
481
  /**
 
482
   * Is this session viewable by the current user?
 
483
   */
 
484
  bool isViewable() const
 
485
  {
 
486
    return plugin::Authorization::isAuthorized(current_session->getSecurityContext(),
 
487
                                               this,
 
488
                                               false);
 
489
  }
 
490
 
 
491
  /**
481
492
    Used in error messages to tell user in what part of MySQL we found an
482
493
    error. E. g. when where= "having clause", if fix_fields() fails, user
483
494
    will know that the error was in having clause.
513
524
 
514
525
private:
515
526
  /* container for handler's private per-connection data */
516
 
  Ha_data ha_data[MAX_HA];
 
527
  std::vector<Ha_data> ha_data;
517
528
  /*
518
529
    Id of current query. Statement can be reused to execute several queries
519
530
    query_id is global in context of the whole MySQL server.
525
536
  query_id_t query_id;
526
537
  query_id_t warn_query_id;
527
538
public:
528
 
  void **getEngineData(const plugin::StorageEngine *engine);
529
 
  ResourceContext *getResourceContext(const plugin::StorageEngine *engine,
 
539
  void **getEngineData(const plugin::MonitoredInTransaction *monitored);
 
540
  ResourceContext *getResourceContext(const plugin::MonitoredInTransaction *monitored,
530
541
                                      size_t index= 0);
531
542
 
532
543
  struct st_transactions {
1430
1441
 
1431
1442
  int drop_temporary_table(TableList *table_list);
1432
1443
  bool rm_temporary_table(plugin::StorageEngine *base, const char *path);
1433
 
  bool rm_temporary_table(plugin::StorageEngine *base, TableIdentifier &identifier);
 
1444
  bool rm_temporary_table(TableIdentifier &identifier);
1434
1445
  Table *open_temporary_table(TableIdentifier &identifier,
1435
1446
                              bool link_in_list= true);
1436
1447