~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/eval0eval.ic

This will now require someone to do a --plugin-add in order to have csv,
archive, or blackhole running.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************************
2
2
 
3
 
Copyright (C) 1997, 2009, Innobase Oy. All Rights Reserved.
 
3
Copyright (c) 1997, 2009, Innobase Oy. All Rights Reserved.
4
4
 
5
5
This program is free software; you can redistribute it and/or modify it under
6
6
the terms of the GNU General Public License as published by the Free Software
11
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
12
 
13
13
You should have received a copy of the GNU General Public License along with
14
 
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15
 
St, Fifth Floor, Boston, MA 02110-1301 USA
 
14
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
 
15
Place, Suite 330, Boston, MA 02111-1307 USA
16
16
 
17
17
*****************************************************************************/
18
18
 
28
28
#include "rem0cmp.h"
29
29
#ifndef PARS0GRM_H
30
30
# define PARS0GRM_H
31
 
# include "pars0grm.hh"
 
31
# include "pars0grm.h"
32
32
#endif
33
33
 
34
34
/*****************************************************************//**
73
73
        dfield = que_node_get_val(node);
74
74
        dfield_set_len(dfield, size);
75
75
 
76
 
        data = static_cast<unsigned char *>(dfield_get_data(dfield));
 
76
        data = dfield_get_data(dfield);
77
77
 
78
78
        if (!data || que_node_get_val_buf_size(node) < size) {
79
79
 
118
118
                return;
119
119
        }
120
120
 
121
 
        eval_func(static_cast<func_node_t *>(exp_node));
 
121
        eval_func(exp_node);
122
122
}
123
123
 
124
124
/*****************************************************************//**
135
135
 
136
136
        dfield = que_node_get_val(node);
137
137
 
138
 
        data = static_cast<byte *>(dfield_get_data(dfield));
 
138
        data = dfield_get_data(dfield);
139
139
 
140
140
        if (data == NULL) {
141
141
                data = eval_node_alloc_val_buf(node, 4);
161
161
 
162
162
        ut_ad(dfield_get_len(dfield) == 4);
163
163
 
164
 
        return((int)mach_read_from_4(static_cast<const unsigned char *>(dfield_get_data(dfield))));
 
164
        return((int)mach_read_from_4(dfield_get_data(dfield)));
165
165
}
166
166
 
167
167
/*****************************************************************//**
178
178
 
179
179
        dfield = que_node_get_val(node);
180
180
 
181
 
        data = static_cast<byte *>(dfield_get_data(dfield));
 
181
        data = dfield_get_data(dfield);
182
182
 
183
183
        ut_ad(data != NULL);
184
184
 
199
199
 
200
200
        dfield = que_node_get_val(func_node);
201
201
 
202
 
        data = static_cast<byte *>(dfield_get_data(dfield));
 
202
        data = dfield_get_data(dfield);
203
203
 
204
204
        if (data == NULL) {
205
205
                /* Allocate 1 byte to hold the value */
249
249
 
250
250
        dfield2 = que_node_get_val(node2);
251
251
 
252
 
        eval_node_copy_and_alloc_val(node1,
253
 
                                     static_cast<unsigned char *>(dfield_get_data(dfield2)),
 
252
        eval_node_copy_and_alloc_val(node1, dfield_get_data(dfield2),
254
253
                                     dfield_get_len(dfield2));
255
254
}