~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_lex.cc

Dead code removal.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1876
1876
*/
1877
1877
bool LEX::only_view_structure()
1878
1878
{
1879
 
  switch (sql_command) {
1880
 
  case SQLCOM_SHOW_CREATE:
1881
 
  case SQLCOM_SHOW_FIELDS:
 
1879
  if (sql_command == SQLCOM_SHOW_CREATE)
1882
1880
    return true;
1883
 
  default:
1884
 
    return false;
1885
 
  }
 
1881
 
 
1882
  return false;
1886
1883
}
1887
1884
 
1888
1885
/*
1897
1894
*/
1898
1895
bool LEX::need_correct_ident()
1899
1896
{
1900
 
  switch(sql_command)
1901
 
  {
1902
 
  case SQLCOM_SHOW_CREATE:
 
1897
  if (sql_command== SQLCOM_SHOW_CREATE)
1903
1898
    return true;
1904
 
  default:
1905
 
    return false;
1906
 
  }
 
1899
 
 
1900
  return false;
1907
1901
}
1908
1902
 
1909
1903
/**