~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/boolean.h

  • Committer: Olaf van der Spek
  • Date: 2011-07-04 19:11:47 UTC
  • mto: This revision was merged to the branch mainline in revision 2367.
  • Revision ID: olafvdspek@gmail.com-20110704191147-s99ojek811zi1fzj
Remove unused Name_resolution_context::error_reporter

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef DRIZZLED_ITEM_BOOLEAN_H
21
 
#define DRIZZLED_ITEM_BOOLEAN_H
22
 
 
23
 
#include "drizzled/item/basic_constant.h"
24
 
 
25
 
namespace drizzled
26
 
{
27
 
 
28
 
namespace item
29
 
{
30
 
 
31
 
class Boolean: public Item_basic_constant
 
20
#pragma once
 
21
 
 
22
#include <drizzled/item/basic_constant.h>
 
23
 
 
24
namespace drizzled {
 
25
namespace item {
 
26
 
 
27
class Boolean : public Item_basic_constant
32
28
{
33
29
  bool value;
34
30
 
39
35
  {
40
36
    max_length= value ? 4 : 5;
41
37
    fixed= true;
42
 
    name= (const_cast<char *>(str_arg));
 
38
    name= str_arg;
43
39
  }
44
40
 
45
41
  Boolean(bool arg) :
102
98
} /* namespace item */
103
99
} /* namespace drizzled */
104
100
 
105
 
#include "drizzled/item/true.h"
106
 
#include "drizzled/item/false.h"
 
101
#include <drizzled/item/true.h>
 
102
#include <drizzled/item/false.h>
107
103
 
108
 
#endif /* DRIZZLED_ITEM_BOOLEAN_H */