~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Olaf van der Spek
  • Date: 2011-03-10 13:07:29 UTC
  • mto: This revision was merged to the branch mainline in revision 2233.
  • Revision ID: olafvdspek@gmail.com-20110310130729-vryrf31kt5jp0ad3
Session::lex()

Show diffs side-by-side

added added

removed removed

Lines of Context:
260
260
      {
261
261
        uint32_t kill_id;
262
262
        memcpy(&kill_id, packet, sizeof(uint32_t));
263
 
        
 
263
 
264
264
        kill_id= ntohl(kill_id);
265
265
        (void)drizzled::kill(*session->user(), kill_id, true);
266
266
      }
415
415
  return false;
416
416
}
417
417
 
418
 
int prepare_new_schema_table(Session *session, LEX *lex,
 
418
int prepare_new_schema_table(Session *session, LEX& lex,
419
419
                             const string& schema_table_name)
420
420
{
421
421
  Select_Lex *schema_select_lex= NULL;
422
422
 
423
 
  Select_Lex *select_lex= lex->current_select;
 
423
  Select_Lex *select_lex= lex.current_select;
424
424
  assert(select_lex);
425
425
  if (_schema_select(session, select_lex, schema_table_name))
426
426
  {
600
600
        return true;
601
601
 
602
602
      /* Init the Query Cache plugin */
603
 
      plugin::QueryCache::prepareResultset(session); 
 
603
      plugin::QueryCache::prepareResultset(session);
604
604
      res= handle_select(session, lex, result, 0);
605
605
      /* Send the Resultset to the cache */
606
 
      plugin::QueryCache::setResultset(session); 
 
606
      plugin::QueryCache::setResultset(session);
607
607
 
608
608
      if (result != lex->result)
609
609
        delete result;
809
809
                                 const_cast<const char *>(session->schema()->c_str()));
810
810
        // Implement Views here --Brian
811
811
        /* Actually execute the query */
812
 
        try 
 
812
        try
813
813
        {
814
814
          execute_command(session);
815
815
        }