~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_lex.cc

  • Committer: Monty Taylor
  • Date: 2009-02-14 07:28:40 UTC
  • mto: This revision was merged to the branch mainline in revision 885.
  • Revision ID: mordred@inaugust.com-20090214072840-f9njqzo1iz75o87y
Fixed some of Jay's review suggestions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
330
330
  return 0;
331
331
}
332
332
 
333
 
/*
334
 
  Check if name is a keyword
335
 
 
336
 
  SYNOPSIS
337
 
    is_keyword()
338
 
    name      checked name (must not be empty)
339
 
    len       length of checked name
340
 
 
341
 
  RETURN VALUES
342
 
    0         name is a keyword
343
 
    1         name isn't a keyword
344
 
*/
345
 
 
346
 
bool is_keyword(const char *name, uint32_t len)
347
 
{
348
 
  assert(len != 0);
349
 
  return lookup_symbol(name,len,0)!=0;
350
 
}
351
333
 
352
334
bool is_lex_native_function(const LEX_STRING *name)
353
335
{