~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Brian Aker
  • Date: 2010-03-04 20:00:00 UTC
  • mfrom: (1320.1.15 build)
  • Revision ID: brian@gaz-20100304200000-vk1jaxgf665smmv8
Merge Monty/Brian

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
478
480
  }
479
481
 
480
482
  /**
 
483
   * Is this session viewable by the current user?
 
484
   */
 
485
  bool isViewable() const
 
486
  {
 
487
    return plugin::Authorization::isAuthorized(current_session->getSecurityContext(),
 
488
                                               this,
 
489
                                               false);
 
490
  }
 
491
 
 
492
  /**
481
493
    Used in error messages to tell user in what part of MySQL we found an
482
494
    error. E. g. when where= "having clause", if fix_fields() fails, user
483
495
    will know that the error was in having clause.