~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/checksum.cc

  • Committer: Jay Pipes
  • Date: 2009-08-16 14:14:39 UTC
  • mfrom: (1100.3.35 cleanup-exec-command)
  • mto: This revision was merged to the branch mainline in revision 1117.
  • Revision ID: jpipes@serialcoder-20090816141439-6ltll44rh3kq7io5
Merge Padraig's continued cleanup of exec command classes plus a couple merge conflict resolutions...

Show diffs side-by-side

added added

removed removed

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