drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
item/function/boolean.h
1
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
*
4
* Copyright (C) 2010 Brian Aker
5
* Copyright (C) 2010 Brian Aker
6
*
7
* This program is free software; you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation; either version 2 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with this program; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
*/
21
22
23
#pragma once
24
25
#include <drizzled/function/math/int.h>
26
27
namespace
drizzled
28
{
29
30
namespace
item
31
{
32
33
namespace
function
34
{
35
36
class
Boolean :
public
Item_int_func
37
{
38
public
:
39
Boolean() :
40
Item_int_func()
41
{}
42
43
Boolean(
Item
*a) :
44
Item_int_func(a)
45
{}
46
47
Boolean(
Item
*a,
Item
*b) :
48
Item_int_func(a,b)
49
{}
50
51
Boolean(
Session
*session, Boolean *item) :
52
Item_int_func(session, item)
53
{}
54
55
bool
is_bool_func()
56
{
57
return
true
;
58
}
59
60
void
fix_length_and_dec()
61
{
62
decimals= 0;
63
max_length= 1;
64
}
65
66
uint32_t decimal_precision()
const
67
{
68
return
1;
69
}
70
};
71
72
}
/* namespace function */
73
}
/* namespace item */
74
}
/* namespace drizzled */
75
drizzled::Item::Item
Item()
Definition
item.cc:282
drizzled::Session
Definition
session.h:82
drizzled
TODO: Rename this file - func.h is stupid.
Definition
abort_exception.h:27
← Back to Drizzle docs
drizzled
item
function
boolean.h
Generated by
1.15.0