~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_lex.cc

Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
1676
1676
 
1677
1677
bool Select_Lex::add_item_to_list(Session *, Item *item)
1678
1678
{
1679
 
  return(item_list.push_back(item));
 
1679
        item_list.push_back(item);
 
1680
  return false;
1680
1681
}
1681
1682
 
1682
1683
bool Select_Lex::add_group_to_list(Session *session, Item *item, bool asc)
2164
2165
*/
2165
2166
bool Select_Lex::add_index_hint (Session *session, char *str, uint32_t length)
2166
2167
{
2167
 
  return index_hints->push_front (new (session->mem_root)
2168
 
                                 Index_hint(current_index_hint_type,
2169
 
                                            current_index_hint_clause,
2170
 
                                            str, length));
 
2168
  index_hints->push_front(new (session->mem_root) Index_hint(current_index_hint_type, current_index_hint_clause, str, length));
 
2169
        return false; // todo: return void
2171
2170
}
2172
2171
 
2173
2172
bool check_for_sql_keyword(drizzled::lex_string_t const& string)
2174
2173
{
2175
 
  if (sql_reserved_words::in_word_set(string.str, string.length))
2176
 
      return true;
2177
 
 
2178
 
  return false;
 
2174
  return sql_reserved_words::in_word_set(string.str, string.length);
2179
2175
}
2180
2176
 
2181
2177
bool check_for_sql_keyword(drizzled::st_lex_symbol const& string)
2182
2178
{
2183
 
  if (sql_reserved_words::in_word_set(string.str, string.length))
2184
 
      return true;
2185
 
 
2186
 
  return false;
 
2179
  return sql_reserved_words::in_word_set(string.str, string.length);
2187
2180
}
2188
2181
 
2189
2182