~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/delete.h

Does not work (compile issue in plugin).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2009 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2009 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#pragma once
 
21
#ifndef DRIZZLED_STATEMENT_DELETE_H
 
22
#define DRIZZLED_STATEMENT_DELETE_H
22
23
 
23
24
#include <drizzled/statement.h>
24
25
 
25
 
namespace drizzled {
26
 
namespace statement {
 
26
namespace drizzled
 
27
{
 
28
class Session;
 
29
 
 
30
namespace statement
 
31
{
27
32
 
28
33
class Delete : public Statement
29
34
{
30
35
public:
31
 
  Delete(Session *in_session) :
32
 
    Statement(in_session)
33
 
  {
34
 
    set_command(SQLCOM_DELETE);
35
 
  }
 
36
  Delete(Session *in_session)
 
37
    :
 
38
      Statement(in_session)
 
39
  {}
36
40
 
37
41
  bool execute();
38
 
  bool isTransactional()
39
 
  {
40
 
    return true;
41
 
  }
42
42
};
43
43
 
44
44
} /* namespace statement */
45
45
 
46
46
} /* namespace drizzled */
47
47
 
 
48
#endif /* DRIZZLED_STATEMENT_DELETE_H */