~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/logging_stats/logging_stats.cc

edit

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
 * 
85
85
 */
86
86
 
87
 
#include <config.h>
 
87
#include "config.h"
88
88
#include "user_commands.h"
89
89
#include "status_vars.h"
90
90
#include "global_stats.h"
128
128
void LoggingStats::updateCurrentScoreboard(ScoreboardSlot *scoreboard_slot,
129
129
                                           Session *session)
130
130
{
131
 
  enum_sql_command sql_command= session->getLex()->sql_command;
 
131
  enum_sql_command sql_command= session->lex->sql_command;
132
132
 
133
133
  scoreboard_slot->getUserCommands()->logCommand(sql_command);
134
134
 
389
389
  N_("User Statistics as DATA_DICTIONARY tables"),
390
390
  PLUGIN_LICENSE_BSD,
391
391
  init,   /* Plugin Init      */
392
 
  NULL, /* depends */
 
392
  NULL, /* system variables */
393
393
  init_options    /* config options   */
394
394
}
395
395
DRIZZLE_DECLARE_PLUGIN_END;