MySQL 9.1.0
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 int opt_command;
44};
45
46struct PS_PARAM {
47 unsigned char null_bit;
49 unsigned char unsigned_type;
50 const unsigned char *value;
51 unsigned long length;
52 const unsigned char *name;
53 unsigned long name_length;
54};
55
57 unsigned long stmt_id;
58 /** This holds the flags, as defined in @ref enum_cursor_type */
59 unsigned long open_cursor;
61 unsigned long parameter_count;
62 unsigned char has_new_types;
63};
64
66 unsigned long stmt_id;
67 unsigned long num_rows;
68};
69
71 unsigned long stmt_id;
72 unsigned int param_number;
73 unsigned char *longdata;
74 unsigned long length;
75};
76
78 const char *query;
79 unsigned int length;
80};
81
83 unsigned int stmt_id;
84};
85
87 unsigned int stmt_id;
88};
89
91 const char *query;
92 unsigned int length;
94 unsigned long parameter_count;
95};
96
98 unsigned char *table_name;
99 unsigned int table_name_length;
100 const unsigned char *query;
101 unsigned int query_length;
102};
103
104union COM_DATA {
115};
116
117#endif /* PLUGIN_PROTOCOL_INCLUDED */
This file contains the field type.
enum_field_types
Column types for MySQL Note: Keep include/mysql/components/services/bits/stored_program_bits....
Definition: field_types.h:55
Common definition between mysql server & client.
Definition: com_data.h:97
unsigned int table_name_length
Definition: com_data.h:99
const unsigned char * query
Definition: com_data.h:100
unsigned int query_length
Definition: com_data.h:101
unsigned char * table_name
Definition: com_data.h:98
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:90
const char * query
Definition: com_data.h:91
unsigned long parameter_count
Definition: com_data.h:94
PS_PARAM * parameters
Definition: com_data.h:93
unsigned int length
Definition: com_data.h:92
Definition: com_data.h:42
unsigned int opt_command
Definition: com_data.h:43
Definition: com_data.h:82
unsigned int stmt_id
Definition: com_data.h:83
Definition: com_data.h:56
unsigned long parameter_count
Definition: com_data.h:61
unsigned char has_new_types
Definition: com_data.h:62
unsigned long open_cursor
This holds the flags, as defined in enum_cursor_type.
Definition: com_data.h:59
PS_PARAM * parameters
Definition: com_data.h:60
unsigned long stmt_id
Definition: com_data.h:57
Definition: com_data.h:65
unsigned long num_rows
Definition: com_data.h:67
unsigned long stmt_id
Definition: com_data.h:66
Definition: com_data.h:77
const char * query
Definition: com_data.h:78
unsigned int length
Definition: com_data.h:79
Definition: com_data.h:86
unsigned int stmt_id
Definition: com_data.h:87
Definition: com_data.h:70
unsigned long stmt_id
Definition: com_data.h:71
unsigned long length
Definition: com_data.h:74
unsigned int param_number
Definition: com_data.h:72
unsigned char * longdata
Definition: com_data.h:73
Definition: com_data.h:46
enum enum_field_types type
Definition: com_data.h:48
const unsigned char * name
Definition: com_data.h:52
const unsigned char * value
Definition: com_data.h:50
unsigned char null_bit
Definition: com_data.h:47
unsigned char unsigned_type
Definition: com_data.h:49
unsigned long length
Definition: com_data.h:51
unsigned long name_length
Definition: com_data.h:53
Definition: com_data.h:104
COM_STMT_EXECUTE_DATA com_stmt_execute
Definition: com_data.h:107
COM_INIT_DB_DATA com_init_db
Definition: com_data.h:105
COM_STMT_CLOSE_DATA com_stmt_close
Definition: com_data.h:111
COM_STMT_PREPARE_DATA com_stmt_prepare
Definition: com_data.h:110
COM_SET_OPTION_DATA com_set_option
Definition: com_data.h:106
COM_STMT_SEND_LONG_DATA_DATA com_stmt_send_long_data
Definition: com_data.h:109
COM_QUERY_DATA com_query
Definition: com_data.h:113
COM_FIELD_LIST_DATA com_field_list
Definition: com_data.h:114
COM_STMT_FETCH_DATA com_stmt_fetch
Definition: com_data.h:108
COM_STMT_RESET_DATA com_stmt_reset
Definition: com_data.h:112