~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_list.cc

  • Committer: Stewart Smith
  • Date: 2011-03-03 08:29:06 UTC
  • mto: (2216.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2217.
  • Revision ID: stewart@flamingspork.com-20110303082906-5zhmxub1j7au038u
remove enum_query_type which was effectively unused. It was set to one value once, compared to it once (i.e. always true) and passed around everywhere doing nothing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
261
261
  return 0;
262
262
}
263
263
 
264
 
void TableList::print(Session *session, String *str, enum_query_type query_type)
 
264
void TableList::print(Session *session, String *str)
265
265
{
266
266
  if (nested_join)
267
267
  {
268
268
    str->append('(');
269
 
    print_join(session, str, &nested_join->join_list, query_type);
 
269
    print_join(session, str, &nested_join->join_list);
270
270
    str->append(')');
271
271
  }
272
272
  else
276
276
    {
277
277
      // A derived table
278
278
      str->append('(');
279
 
      derived->print(str, query_type);
 
279
      derived->print(str);
280
280
      str->append(')');
281
281
      cmp_name= "";                               // Force printing of alias
282
282
    }