~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
#define YYINITDEPTH 100
37
37
#define YYMAXDEPTH 3200                        /* Because of 64K stack */
38
38
#define Lex (YYSession->lex)
39
 
#include <drizzled/server_includes.h>
 
39
#include "config.h"
40
40
#include <drizzled/foreign_key.h>
41
41
#include <drizzled/lex_symbol.h>
42
42
#include <drizzled/function/locate.h>
131
131
#include <drizzled/statement/unlock_tables.h>
132
132
#include <drizzled/statement/update.h>
133
133
#include <drizzled/db.h>
 
134
#include "drizzled/global_charset_info.h"
 
135
#include "drizzled/pthread_globals.h"
 
136
 
134
137
 
135
138
using namespace drizzled;
136
139
 
171
174
 
172
175
#define YYDEBUG 0
173
176
 
 
177
static bool check_reserved_words(LEX_STRING *name)
 
178
{
 
179
  if (!my_strcasecmp(system_charset_info, name->str, "GLOBAL") ||
 
180
      !my_strcasecmp(system_charset_info, name->str, "LOCAL") ||
 
181
      !my_strcasecmp(system_charset_info, name->str, "SESSION"))
 
182
    return true;
 
183
  return false;
 
184
}
 
185
 
174
186
/**
175
187
  @brief Push an error message into MySQL error stack with line
176
188
  and position information.