~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.cc

  • Committer: Brian Aker
  • Date: 2009-04-27 14:36:40 UTC
  • Revision ID: brian@gaz-20090427143640-f6zjmtt9vm55qgm2
Patch on show processlist from  davi@apache.org

Show diffs side-by-side

added added

removed removed

Lines of Context:
462
462
  TableList *all_tables;
463
463
  /* most outer Select_Lex_Unit of query */
464
464
  Select_Lex_Unit *unit= &lex->unit;
465
 
  /* Saved variable value */
 
465
  /* A peek into the query string */
 
466
  size_t proc_info_len= session->query_length > PROCESS_LIST_WIDTH ?
 
467
                        PROCESS_LIST_WIDTH : session->query_length;
 
468
 
 
469
  memcpy(session->process_list_info, session->query, proc_info_len);
 
470
  session->process_list_info[proc_info_len]= '\0';
466
471
 
467
472
  /*
468
473
    In many cases first table of main Select_Lex have special meaning =>