MySQL 8.0.39
Source Code Documentation
com_data.h
Go to the documentation of this file.
1/* Copyright (c) 2015, 2024, Oracle and/or its affiliates.
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 designed to work 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 either included with
13 the program or referenced in the documentation.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License, version 2.0, for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23#ifndef PLUGIN_PROTOCOL_INCLUDED
24#define PLUGIN_PROTOCOL_INCLUDED
25
26#ifndef MYSQL_ABI_CHECK
27#include "field_types.h" /* enum_field_types */
28#include "mysql_com.h" /* mysql_enum_shutdown_level */
29#endif
30
31/**
32 @file include/mysql/com_data.h
33 Definition of COM_DATA to be used with the Command service as data input
34 structure.
35*/
36
38 const char *db_name;
39 unsigned long length;
40};
41
43 unsigned char options;
44};
45
47 unsigned long id;
48};
49
51 unsigned int opt_command;
52};
53
54struct PS_PARAM {
55 unsigned char null_bit;
57 unsigned char unsigned_type;
58 const unsigned char *value;
59 unsigned long length;
60 const unsigned char *name;
61 unsigned long name_length;
62};
63
65 unsigned long stmt_id;
66 /** This holds the flags, as defined in @ref enum_cursor_type */
67 unsigned long open_cursor;
69 unsigned long parameter_count;
70 unsigned char has_new_types;
71};
72
74 unsigned long stmt_id;
75 unsigned long num_rows;
76};
77
79 unsigned long stmt_id;
80 unsigned int param_number;
81 unsigned char *longdata;
82 unsigned long length;
83};
84
86 const char *query;
87 unsigned int length;
88};
89
91 unsigned int stmt_id;
92};
93
95 unsigned int stmt_id;
96};
97
99 const char *query;
100 unsigned int length;
102 unsigned long parameter_count;
103};
104
106 unsigned char *table_name;
107 unsigned int table_name_length;
108 const unsigned char *query;
109 unsigned int query_length;
110};
111
112union COM_DATA {
125};
126
127#endif /* PLUGIN_PROTOCOL_INCLUDED */
This file contains the field type.
enum_field_types
Column types for MySQL.
Definition: field_types.h:53
Common definition between mysql server & client.
Definition: com_data.h:105
unsigned int table_name_length
Definition: com_data.h:107
const unsigned char * query
Definition: com_data.h:108
unsigned int query_length
Definition: com_data.h:109
unsigned char * table_name
Definition: com_data.h:106
Definition: com_data.h:37
unsigned long length
Definition: com_data.h:39
const char * db_name
Definition: com_data.h:38
Definition: com_data.h:46
unsigned long id
Definition: com_data.h:47
Definition: com_data.h:98
const char * query
Definition: com_data.h:99
unsigned long parameter_count
Definition: com_data.h:102
PS_PARAM * parameters
Definition: com_data.h:101
unsigned int length
Definition: com_data.h:100
Definition: com_data.h:42
unsigned char options
Definition: com_data.h:43
Definition: com_data.h:50
unsigned int opt_command
Definition: com_data.h:51
Definition: com_data.h:90
unsigned int stmt_id
Definition: com_data.h:91
Definition: com_data.h:64
unsigned long parameter_count
Definition: com_data.h:69
unsigned char has_new_types
Definition: com_data.h:70
unsigned long open_cursor
This holds the flags, as defined in enum_cursor_type.
Definition: com_data.h:67
PS_PARAM * parameters
Definition: com_data.h:68
unsigned long stmt_id
Definition: com_data.h:65
Definition: com_data.h:73
unsigned long num_rows
Definition: com_data.h:75
unsigned long stmt_id
Definition: com_data.h:74
Definition: com_data.h:85
const char * query
Definition: com_data.h:86
unsigned int length
Definition: com_data.h:87
Definition: com_data.h:94
unsigned int stmt_id
Definition: com_data.h:95
Definition: com_data.h:78
unsigned long stmt_id
Definition: com_data.h:79
unsigned long length
Definition: com_data.h:82
unsigned int param_number
Definition: com_data.h:80
unsigned char * longdata
Definition: com_data.h:81
Definition: com_data.h:54
enum enum_field_types type
Definition: com_data.h:56
const unsigned char * name
Definition: com_data.h:60
const unsigned char * value
Definition: com_data.h:58
unsigned char null_bit
Definition: com_data.h:55
unsigned char unsigned_type
Definition: com_data.h:57
unsigned long length
Definition: com_data.h:59
unsigned long name_length
Definition: com_data.h:61
Definition: com_data.h:112
COM_STMT_EXECUTE_DATA com_stmt_execute
Definition: com_data.h:117
COM_INIT_DB_DATA com_init_db
Definition: com_data.h:113
COM_STMT_CLOSE_DATA com_stmt_close
Definition: com_data.h:121
COM_STMT_PREPARE_DATA com_stmt_prepare
Definition: com_data.h:120
COM_SET_OPTION_DATA com_set_option
Definition: com_data.h:116
COM_STMT_SEND_LONG_DATA_DATA com_stmt_send_long_data
Definition: com_data.h:119
COM_QUERY_DATA com_query
Definition: com_data.h:123
COM_KILL_DATA com_kill
Definition: com_data.h:115
COM_FIELD_LIST_DATA com_field_list
Definition: com_data.h:124
COM_STMT_FETCH_DATA com_stmt_fetch
Definition: com_data.h:118
COM_STMT_RESET_DATA com_stmt_reset
Definition: com_data.h:122
COM_REFRESH_DATA com_refresh
Definition: com_data.h:114