MySQL 9.0.0
Source Code Documentation
que0types.h
Go to the documentation of this file.
1/*****************************************************************************
2
3Copyright (c) 1996, 2024, Oracle and/or its affiliates.
4
5This program is free software; you can redistribute it and/or modify it under
6the terms of the GNU General Public License, version 2.0, as published by the
7Free Software Foundation.
8
9This program is designed to work with certain software (including
10but not limited to OpenSSL) that is licensed under separate terms,
11as designated in a particular file or component or in included license
12documentation. The authors of MySQL hereby grant you an additional
13permission to link the program and your derivative works with the
14separately licensed software that they have either included with
15the program or referenced in the documentation.
16
17This program is distributed in the hope that it will be useful, but WITHOUT
18ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
19FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,
20for more details.
21
22You should have received a copy of the GNU General Public License along with
23this program; if not, write to the Free Software Foundation, Inc.,
2451 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 */
41typedef void que_node_t;
42
43/* Query graph root is a fork node */
44typedef struct que_fork_t que_t;
45
46struct que_thr_t;
47
48/* Common struct at the beginning of each query graph node; the name of this
49substruct must be 'common' */
50
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 */
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
SQL data field and tuple.
Data dictionary global types.
void que_node_t
Definition: que0types.h:41
Structure for an SQL data field.
Definition: data0data.h:605
Definition: que0types.h:51
ulint type
query node type
Definition: que0types.h:52
dfield_t val
evaluated value for an expression
Definition: que0types.h:55
que_node_t * brother
Definition: que0types.h:54
ulint val_buf_size
Definition: que0types.h:56
que_node_t * parent
back pointer to parent node, or NULL
Definition: que0types.h:53
Definition: que0que.h:301
Definition: que0que.h:242
unsigned long int ulint
Definition: univ.i:406