~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/truncate.h

Refactor

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
 
38
37
  Truncate(Session *in_session) :
39
38
    Statement(in_session)
40
39
  {
41
 
    getSession()->getLex()->sql_command= SQLCOM_TRUNCATE;
 
40
    set_command(SQLCOM_TRUNCATE);
42
41
  }
43
42
 
44
43
  bool execute();
48
47
 
49
48
} /* namespace drizzled */
50
49
 
51
 
#endif /* DRIZZLED_STATEMENT_TRUNCATE_H */