Debian Codegraph @

storage/innobase/include/que0types.h

raw
1 /*****************************************************************************
2
3 Copyright (c) 1996, 2026, Oracle and/or its affiliates.
4
5 This program is free software; you can redistribute it and/or modify it under
6 the terms of the GNU General Public License, version 2.0, as published by the
7 Free Software Foundation.
8
9 This program is designed to work with certain software (including
10 but not limited to OpenSSL) that is licensed under separate terms,
11 as designated in a particular file or component or in included license
12 documentation. The authors of MySQL hereby grant you an additional
13 permission to link the program and your derivative works with the
14 separately licensed software that they have either included with
15 the program or referenced in the documentation.
16
17 This program is distributed in the hope that it will be useful, but WITHOUT
18 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
19 FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,
20 for more details.
21
22 You should have received a copy of the GNU General Public License along with
23 this program; if not, write to the Free Software Foundation, Inc.,
24 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
26 *****************************************************************************/
27
28 /** @file include/que0types.h
29 Query graph global types
30
31 Created 5/27/1996 Heikki Tuuri
32 *******************************************************/
33
34 #ifndef que0types_h
35 #define que0types_h
36
37 #include "data0data.h"
38 #include "dict0types.h"
39
40 /* Pseudotype for all graph nodes */
41 typedef void que_node_t;
42
43 /* Query graph root is a fork node */
44 typedef struct que_fork_t que_t;
45
46 struct que_thr_t;
47
48 /* Common struct at the beginning of each query graph node; the name of this
49 substruct must be 'common' */
50
51 struct que_common_t {
52 ulint type; /*!< query node type */
53 que_node_t *parent; /*!< back pointer to parent node, or NULL */
54 que_node_t *brother; /* pointer to a possible brother node */
55 dfield_t val; /*!< evaluated value for an expression */
56 ulint val_buf_size;
57 /* buffer size for the evaluated value data,
58 if the buffer has been allocated dynamically:
59 if this field is != 0, and the node is a
60 symbol node or a function node, then we
61 have to free the data field in val
62 explicitly */
63 };
64
65 #endif