~posulliv/drizzle/optimizer-style-cleanup

« back to all changes in this revision

Viewing changes to drizzled/sql_lex.cc

  • Committer: Padraig O'Sullivan
  • Date: 2010-03-15 14:05:26 UTC
  • mfrom: (1237.9.99 staging)
  • Revision ID: osullivan.padraig@gmail.com-20100315140526-opbgwdwn6tfecdkq
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
  m_body_utf8(NULL),
85
85
  m_cpp_utf8_processed_ptr(NULL),
86
86
  next_state(MY_LEX_START),
87
 
  found_semicolon(NULL),
88
87
  ignore_space(1),
89
88
  in_comment(NO_COMMENT)
90
89
{
1877
1876
*/
1878
1877
bool LEX::only_view_structure()
1879
1878
{
1880
 
  switch (sql_command) {
1881
 
  case SQLCOM_SHOW_CREATE:
1882
 
  case SQLCOM_SHOW_TABLES:
1883
 
  case SQLCOM_SHOW_FIELDS:
 
1879
  if (sql_command == SQLCOM_SHOW_CREATE)
1884
1880
    return true;
1885
 
  default:
1886
 
    return false;
1887
 
  }
 
1881
 
 
1882
  return false;
1888
1883
}
1889
1884
 
1890
1885
/*
1899
1894
*/
1900
1895
bool LEX::need_correct_ident()
1901
1896
{
1902
 
  switch(sql_command)
1903
 
  {
1904
 
  case SQLCOM_SHOW_CREATE:
1905
 
  case SQLCOM_SHOW_TABLES:
 
1897
  if (sql_command== SQLCOM_SHOW_CREATE)
1906
1898
    return true;
1907
 
  default:
1908
 
    return false;
1909
 
  }
 
1899
 
 
1900
  return false;
1910
1901
}
1911
1902
 
1912
1903
/**