~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_lex.cc

  • Committer: Brian Aker
  • Date: 2008-11-18 23:19:19 UTC
  • mfrom: (584.1.16 devel)
  • Revision ID: brian@tangent.org-20081118231919-w9sr347dtiwhccml
Merge of Monty's work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#define DRIZZLE_LEX 1
20
20
#include <drizzled/server_includes.h>
21
21
#include <drizzled/error.h>
 
22
#include <drizzled/session.h>
 
23
#include <drizzled/sql_base.h>
22
24
 
23
25
static int lex_one_token(void *arg, void *yysession);
24
26
 
72
74
  "FORCE INDEX"
73
75
};
74
76
 
75
 
inline int lex_casecmp(const char *s, const char *t, uint32_t len)
 
77
int lex_casecmp(const char *s, const char *t, uint32_t len)
76
78
{
77
79
  while (len-- != 0 &&
78
80
         to_upper_lex[(unsigned char) *s++] == to_upper_lex[(unsigned char) *t++]) ;
79
81
  return (int) len+1;
80
82
}
81
83
 
82
 
#include <lex_hash.h>
 
84
/* EVIL EVIL - this is included here so that it will have to_upper_lex */
 
85
#include <drizzled/lex_hash.h>
83
86
 
84
87
 
85
88
void lex_init(void)