~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/truncate.h

  • Committer: Olaf van der Spek
  • Date: 2011-10-24 21:23:54 UTC
  • mto: This revision was merged to the branch mainline in revision 2449.
  • Revision ID: olafvdspek@gmail.com-20111024212354-j32gbc2sbsw0985q
Use str_ref

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
 
#ifndef DRIZZLED_STATEMENT_TRUNCATE_H
22
 
#define DRIZZLED_STATEMENT_TRUNCATE_H
 
21
#pragma once
23
22
 
24
23
#include <drizzled/statement.h>
25
24
 
26
 
 
27
 
namespace drizzled
28
 
{
29
 
 
30
 
class Session;
31
 
 
32
 
namespace statement
33
 
{
 
25
namespace drizzled {
 
26
namespace statement {
34
27
 
35
28
class Truncate : public Statement
36
29
{
37
30
public:
38
 
  Truncate(Session *in_session)
39
 
    :
40
 
      Statement(in_session)
41
 
  {}
 
31
  Truncate(Session *in_session) :
 
32
    Statement(in_session)
 
33
  {
 
34
    set_command(SQLCOM_TRUNCATE);
 
35
  }
42
36
 
43
37
  bool execute();
44
38
};
47
41
 
48
42
} /* namespace drizzled */
49
43
 
50
 
#endif /* DRIZZLED_STATEMENT_TRUNCATE_H */