~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_lex.cc

  • Committer: Brian Aker
  • Date: 2008-12-16 00:40:59 UTC
  • Revision ID: brian@tangent.org-20081216004059-12yccqqlsjkvsugo
Remove vector from lex for plugins.

Show diffs side-by-side

added added

removed removed

Lines of Context:
340
340
  lex->in_sum_func= NULL;
341
341
 
342
342
  lex->is_lex_started= true;
343
 
  return;
344
343
}
345
344
 
346
345
void lex_end(LEX *lex)
353
352
    lex->yacc_yyvs= 0;
354
353
  }
355
354
 
356
 
  /* release used plugins */
357
 
  plugin_unlock_list(0, (plugin_ref*)lex->plugins.buffer,
358
 
                     lex->plugins.elements);
359
 
  reset_dynamic(&lex->plugins);
360
 
 
361
355
  delete lex->result;
362
356
  lex->result= 0;
363
 
 
364
 
  return;
365
357
}
366
358
 
367
359
 
378
370
 
379
371
    return symbol->tok;
380
372
  }
 
373
 
381
374
  return 0;
382
375
}
383
376
 
2098
2091
   sql_command(SQLCOM_END), option_type(OPT_DEFAULT), is_lex_started(0)
2099
2092
{
2100
2093
 
2101
 
  my_init_dynamic_array2(&plugins, sizeof(plugin_ref),
2102
 
                         plugins_static_buffer,
2103
 
                         INITIAL_LEX_PLUGIN_LIST_SIZE,
2104
 
                         INITIAL_LEX_PLUGIN_LIST_SIZE);
2105
2094
  reset_query_tables_list(true);
2106
2095
}
2107
2096