1280.1.10
by Monty Taylor
Put everything in drizzled into drizzled namespace. |
1 |
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
|
483.1.6
by Lee
code clean up for Field_num |
2 |
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
|
3 |
*
|
|
4 |
* Copyright (C) 2008 MySQL
|
|
5 |
*
|
|
6 |
* This program is free software; you can redistribute it and/or modify
|
|
7 |
* it under the terms of the GNU General Public License as published by
|
|
8 |
* the Free Software Foundation; either version 2 of the License, or
|
|
9 |
* (at your option) any later version.
|
|
10 |
*
|
|
11 |
* This program is distributed in the hope that it will be useful,
|
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14 |
* GNU General Public License for more details.
|
|
15 |
*
|
|
16 |
* You should have received a copy of the GNU General Public License
|
|
17 |
* along with this program; if not, write to the Free Software
|
|
18 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
19 |
*/
|
|
20 |
||
2234
by Brian Aker
Mass removal of ifdef/endif in favor of pragma once. |
21 |
#pragma once
|
483.1.6
by Lee
code clean up for Field_num |
22 |
|
2173.2.1
by Monty Taylor
Fixes incorrect usage of include |
23 |
#include <drizzled/field.h> |
1237.9.4
by Padraig O'Sullivan
Removed the inclusion of drizzled/field.h in the server_includes header file. |
24 |
|
1280.1.10
by Monty Taylor
Put everything in drizzled into drizzled namespace. |
25 |
namespace drizzled |
26 |
{
|
|
27 |
||
1237.9.4
by Padraig O'Sullivan
Removed the inclusion of drizzled/field.h in the server_includes header file. |
28 |
class Field_num :public Field |
29 |
{
|
|
483.1.6
by Lee
code clean up for Field_num |
30 |
public: |
31 |
const uint8_t dec; |
|
32 |
bool decimal_precision; // Purify cannot handle bit fields & only for decimal type |
|
33 |
bool unsigned_flag; // Purify cannot handle bit fields |
|
2008.2.3
by Brian Aker
Fixing up a, somewhat, hidden unsigned type to solve a few issues around |
34 |
|
483.1.6
by Lee
code clean up for Field_num |
35 |
Field_num(unsigned char *ptr_arg,uint32_t len_arg, unsigned char *null_ptr_arg, |
36 |
unsigned char null_bit_arg, utype unireg_check_arg, |
|
37 |
const char *field_name_arg, |
|
38 |
uint8_t dec_arg, bool zero_arg, bool unsigned_arg); |
|
2008.2.3
by Brian Aker
Fixing up a, somewhat, hidden unsigned type to solve a few issues around |
39 |
|
483.1.6
by Lee
code clean up for Field_num |
40 |
Item_result result_type () const { return REAL_RESULT; } |
2008.2.3
by Brian Aker
Fixing up a, somewhat, hidden unsigned type to solve a few issues around |
41 |
|
1052.2.3
by Nathan Williams
No actual code changes. Changed Create_field to CreateField to be consistent with coding standards. |
42 |
friend class CreateField; |
2008.2.3
by Brian Aker
Fixing up a, somewhat, hidden unsigned type to solve a few issues around |
43 |
|
1052.2.4
by Nathan Williams
No actual code changes. Changed Send_field to SendField to be consistent with coding standards. |
44 |
void make_field(SendField *); |
2008.2.3
by Brian Aker
Fixing up a, somewhat, hidden unsigned type to solve a few issues around |
45 |
|
483.1.6
by Lee
code clean up for Field_num |
46 |
uint32_t decimals() const { return (uint32_t) dec; } |
2008.2.3
by Brian Aker
Fixing up a, somewhat, hidden unsigned type to solve a few issues around |
47 |
|
483.1.6
by Lee
code clean up for Field_num |
48 |
uint32_t size_of() const { return sizeof(*this); } |
2008.2.3
by Brian Aker
Fixing up a, somewhat, hidden unsigned type to solve a few issues around |
49 |
|
483.1.6
by Lee
code clean up for Field_num |
50 |
bool eq_def(Field *field); |
2008.2.3
by Brian Aker
Fixing up a, somewhat, hidden unsigned type to solve a few issues around |
51 |
|
2030.1.4
by Brian Aker
Change my_decimal to Decimal |
52 |
int store_decimal(const type::Decimal *); |
2008.2.3
by Brian Aker
Fixing up a, somewhat, hidden unsigned type to solve a few issues around |
53 |
|
2181.2.1
by Brian Aker
Protect all of the val_* methods from modification. |
54 |
type::Decimal *val_decimal(type::Decimal *) const; |
2008.2.3
by Brian Aker
Fixing up a, somewhat, hidden unsigned type to solve a few issues around |
55 |
|
1052.2.3
by Nathan Williams
No actual code changes. Changed Create_field to CreateField to be consistent with coding standards. |
56 |
uint32_t is_equal(CreateField *new_field); |
2008.2.3
by Brian Aker
Fixing up a, somewhat, hidden unsigned type to solve a few issues around |
57 |
|
2254
by Brian Aker
Shift CHARSET_INFO to charset_info_st |
58 |
int check_int(const charset_info_st * const cs, const char *str, int length, |
483.1.6
by Lee
code clean up for Field_num |
59 |
const char *int_end, int error); |
2008.2.3
by Brian Aker
Fixing up a, somewhat, hidden unsigned type to solve a few issues around |
60 |
|
2254
by Brian Aker
Shift CHARSET_INFO to charset_info_st |
61 |
bool get_int(const charset_info_st * const cs, const char *from, uint32_t len, |
483.1.6
by Lee
code clean up for Field_num |
62 |
int64_t *rnd, uint64_t unsigned_max, |
63 |
int64_t signed_min, int64_t signed_max); |
|
64 |
};
|
|
65 |
||
1280.1.10
by Monty Taylor
Put everything in drizzled into drizzled namespace. |
66 |
} /* namespace drizzled */ |
483.1.6
by Lee
code clean up for Field_num |
67 |