~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/delete.cc

  • Committer: Jay Pipes
  • Date: 2009-10-03 06:05:57 UTC
  • mto: (1234.1.1 push) (1237.2.10 push)
  • mto: This revision was merged to the branch mainline in revision 1166.
  • Revision ID: jpipes@serialcoder-20091003060557-kw8xz3p634vqsbsi
New transaction proto file containing message definitions to be
used in new replication system, which supports group commit behaviour.

New statement_transform library files with utility methods used in 
converting transaction messages into SQL strings.

Update transaction_reader and transaction_writer programs to use
CodedOutput and CodedInputStream from GPB library and got rid of 
calls to korr.h macros entirely.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#include "config.h"
 
21
#include <drizzled/server_includes.h>
22
22
#include <drizzled/show.h>
23
23
#include <drizzled/session.h>
24
24
#include <drizzled/lock.h>
25
25
#include <drizzled/probes.h>
26
26
#include <drizzled/statement/delete.h>
27
27
 
28
 
namespace drizzled
29
 
{
 
28
using namespace drizzled;
30
29
 
31
30
bool statement::Delete::execute()
32
31
{
33
 
  DRIZZLE_DELETE_START(session->query.c_str());
 
32
  DRIZZLE_DELETE_START(session->query);
34
33
  TableList *first_table= (TableList *) session->lex->select_lex.table_list.first;
35
34
  TableList *all_tables= session->lex->query_tables;
36
35
  Select_Lex *select_lex= &session->lex->select_lex;
56
55
  start_waiting_global_read_lock(session);
57
56
  return res;
58
57
}
59
 
 
60
 
} /* namespace drizzled */