~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/truncate.h

  • Committer: Mark Atwood
  • Date: 2012-01-04 16:59:32 UTC
  • mfrom: (2478.2.3 real-key-use-catalog)
  • Revision ID: me@mark.atwood.name-20120104165932-cm0xqs4by0u3p4cy
mergeĀ lp:~stewart/drizzle/key-use-catalog

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