MySQL  8.0.16
Source Code Documentation
com_data.h
Go to the documentation of this file.
1 /* Copyright (c) 2015, 2019, Oracle and/or its affiliates. All rights reserved.
2 
3  This program is free software; you can redistribute it and/or modify
4  it under the terms of the GNU General Public License, version 2.0,
5  as published by the Free Software Foundation.
6 
7  This program is also distributed with certain software (including
8  but not limited to OpenSSL) that is licensed under separate terms,
9  as designated in a particular file or component or in included license
10  documentation. The authors of MySQL hereby grant you an additional
11  permission to link the program and your derivative works with the
12  separately licensed software that they have included with MySQL.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License, version 2.0, for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
22 #ifndef PLUGIN_PROTOCOL_INCLUDED
23 #define PLUGIN_PROTOCOL_INCLUDED
24 
25 #ifndef MYSQL_ABI_CHECK
26 #include "field_types.h" /* enum_field_types */
27 #include "mysql_com.h" /* mysql_enum_shutdown_level */
28 #endif
29 
30 /**
31  @file include/mysql/com_data.h
32  Definition of COM_DATA to be used with the Command service as data input
33  structure.
34 */
35 
37  const char *db_name;
38  unsigned long length;
39 };
40 
42  unsigned char options;
43 };
44 
45 struct COM_KILL_DATA {
46  unsigned long id;
47 };
48 
50  unsigned int opt_command;
51 };
52 
53 struct PS_PARAM {
54  unsigned char null_bit;
56  unsigned char unsigned_type;
57  const unsigned char *value;
58  unsigned long length;
59 };
60 
62  unsigned long stmt_id;
63  unsigned long open_cursor;
65  unsigned long parameter_count;
66  unsigned char has_new_types;
67 };
68 
70  unsigned long stmt_id;
71  unsigned long num_rows;
72 };
73 
75  unsigned long stmt_id;
76  unsigned int param_number;
77  unsigned char *longdata;
78  unsigned long length;
79 };
80 
82  const char *query;
83  unsigned int length;
84 };
85 
87  unsigned int stmt_id;
88 };
89 
91  unsigned int stmt_id;
92 };
93 
95  const char *query;
96  unsigned int length;
97 };
98 
100  unsigned char *table_name;
101  unsigned int table_name_length;
102  const unsigned char *query;
103  unsigned int query_length;
104 };
105 
106 union COM_DATA {
119 };
120 
121 #endif /* PLUGIN_PROTOCOL_INCLUDED */
unsigned char * table_name
Definition: com_data.h:100
unsigned long id
Definition: com_data.h:46
unsigned int opt_command
Definition: com_data.h:50
This file contains the field type.
unsigned long open_cursor
Definition: com_data.h:63
unsigned long length
Definition: com_data.h:38
unsigned char has_new_types
Definition: com_data.h:66
unsigned long num_rows
Definition: com_data.h:71
PS_PARAM * parameters
Definition: com_data.h:64
Definition: com_data.h:74
Definition: com_data.h:69
const unsigned char * query
Definition: com_data.h:102
const char * query
Definition: com_data.h:95
Definition: com_data.h:49
unsigned int query_length
Definition: com_data.h:103
const char * db_name
Definition: com_data.h:37
unsigned int param_number
Definition: com_data.h:76
unsigned long length
Definition: com_data.h:58
Definition: com_data.h:41
unsigned long stmt_id
Definition: com_data.h:70
Definition: com_data.h:106
Definition: com_data.h:53
unsigned long parameter_count
Definition: com_data.h:65
COM_SET_OPTION_DATA com_set_option
Definition: com_data.h:110
COM_STMT_FETCH_DATA com_stmt_fetch
Definition: com_data.h:112
Common definition between mysql server & client.
COM_REFRESH_DATA com_refresh
Definition: com_data.h:108
unsigned char unsigned_type
Definition: com_data.h:56
Definition: com_data.h:86
unsigned int table_name_length
Definition: com_data.h:101
const char * query
Definition: com_data.h:82
COM_STMT_RESET_DATA com_stmt_reset
Definition: com_data.h:116
unsigned long stmt_id
Definition: com_data.h:62
COM_INIT_DB_DATA com_init_db
Definition: com_data.h:107
COM_STMT_PREPARE_DATA com_stmt_prepare
Definition: com_data.h:114
unsigned long stmt_id
Definition: com_data.h:75
unsigned int length
Definition: com_data.h:83
Definition: com_data.h:90
COM_QUERY_DATA com_query
Definition: com_data.h:117
unsigned long length
Definition: com_data.h:78
enum_field_types
Column types for MySQL.
Definition: field_types.h:52
COM_STMT_CLOSE_DATA com_stmt_close
Definition: com_data.h:115
Definition: com_data.h:61
Definition: com_data.h:45
unsigned char options
Definition: com_data.h:42
unsigned char null_bit
Definition: com_data.h:54
unsigned int length
Definition: com_data.h:96
unsigned int stmt_id
Definition: com_data.h:87
unsigned char * longdata
Definition: com_data.h:77
enum enum_field_types type
Definition: com_data.h:55
Definition: com_data.h:36
Definition: com_data.h:99
COM_STMT_EXECUTE_DATA com_stmt_execute
Definition: com_data.h:111
COM_KILL_DATA com_kill
Definition: com_data.h:109
unsigned int stmt_id
Definition: com_data.h:91
Definition: com_data.h:81
Definition: com_data.h:94
COM_FIELD_LIST_DATA com_field_list
Definition: com_data.h:118
COM_STMT_SEND_LONG_DATA_DATA com_stmt_send_long_data
Definition: com_data.h:113
const unsigned char * value
Definition: com_data.h:57