~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/command/checksum.cc

  • Committer: Padraig O'Sullivan
  • Date: 2009-08-07 14:32:00 UTC
  • mto: (1115.3.4 captain)
  • mto: This revision was merged to the branch mainline in revision 1117.
  • Revision ID: osullivan.padraig@gmail.com-20090807143200-mc2h2kb088u9lvq5
Changed return type of the execute() function in Command classes to be bool
instead of int.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include <drizzled/session.h>
24
24
#include <drizzled/command/checksum.h>
25
25
 
26
 
int drizzled::command::Checksum::execute()
 
26
bool drizzled::command::Checksum::execute()
27
27
{
28
28
  TableList *first_table= (TableList *) session->lex->select_lex.table_list.first;
29
29
  TableList *all_tables= session->lex->query_tables;
30
30
  assert(first_table == all_tables && first_table != 0);
31
 
  int res= mysql_checksum_table(session, first_table, &session->lex->check_opt);
 
31
  bool res= mysql_checksum_table(session, first_table, &session->lex->check_opt);
32
32
  return res;
33
33
}