~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Brian Aker
  • Date: 2008-11-03 03:49:00 UTC
  • mfrom: (520.4.50 devel)
  • Revision ID: brian@tangent.org-20081103034900-znhvcgtipr3tlel5
Merging in Monty's work

Show diffs side-by-side

added added

removed removed

Lines of Context:
4277
4277
}
4278
4278
 
4279
4279
 
4280
 
extern int MYSQLparse(void *session); // from sql_yacc.cc
 
4280
extern int DRIZZLEparse(void *session); // from sql_yacc.cc
4281
4281
 
4282
4282
 
4283
4283
/**
4284
 
  This is a wrapper of MYSQLparse(). All the code should call parse_sql()
4285
 
  instead of MYSQLparse().
 
4284
  This is a wrapper of DRIZZLEparse(). All the code should call parse_sql()
 
4285
  instead of DRIZZLEparse().
4286
4286
 
4287
4287
  @param session Thread context.
4288
4288
  @param lip Lexer context.
4302
4302
 
4303
4303
  /* Parse the query. */
4304
4304
 
4305
 
  bool mysql_parse_status= MYSQLparse(session) != 0;
 
4305
  bool mysql_parse_status= DRIZZLEparse(session) != 0;
4306
4306
 
4307
 
  /* Check that if MYSQLparse() failed, session->is_error() is set. */
 
4307
  /* Check that if DRIZZLEparse() failed, session->is_error() is set. */
4308
4308
 
4309
4309
  assert(!mysql_parse_status || session->is_error());
4310
4310