~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_union.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-22 21:57:14 UTC
  • mto: This revision was merged to the branch mainline in revision 2348.
  • Revision ID: olafvdspek@gmail.com-20110622215714-0wmhwrx6of27etov
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
                   Select_Lex_Unit *unit, uint64_t setup_tables_done_option)
36
36
{
37
37
  bool res= unit->prepare(session, result, SELECT_NO_UNLOCK | setup_tables_done_option);
38
 
  if (!res)
 
38
  if (not res)
39
39
    res= unit->exec();
40
40
  if (res)
41
 
    res|= unit->cleanup();
 
41
    unit->cleanup();
42
42
  return res;
43
43
}
44
44