~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/delete.cc

  • Committer: Padraig O'Sullivan
  • Date: 2009-08-10 18:03:39 UTC
  • mto: (1115.3.4 captain)
  • mto: This revision was merged to the branch mainline in revision 1117.
  • Revision ID: osullivan.padraig@gmail.com-20090810180339-c7h4bw0boa9mi8o9
Various updates after great code review from Jay. Thanks Jay!

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include <drizzled/lock.h>
25
25
#include <drizzled/statement/delete.h>
26
26
 
27
 
bool drizzled::statement::Delete::execute()
 
27
using namespace drizzled;
 
28
 
 
29
bool statement::Delete::execute()
28
30
{
29
31
  TableList *first_table= (TableList *) session->lex->select_lex.table_list.first;
30
32
  TableList *all_tables= session->lex->query_tables;
40
42
    return true;
41
43
  }
42
44
 
43
 
  bool res = mysql_delete(session, all_tables, select_lex->where,
44
 
                          &select_lex->order_list,
45
 
                          unit->select_limit_cnt, select_lex->options,
46
 
                          false);
 
45
  bool res= mysql_delete(session, all_tables, select_lex->where,
 
46
                         &select_lex->order_list,
 
47
                         unit->select_limit_cnt, select_lex->options,
 
48
                         false);
47
49
  /*
48
50
    Release the protection against the global read lock and wake
49
51
    everyone, who might want to set a global read lock.