24#ifndef TABLE_SESSION_CONNECT_H
25#define TABLE_SESSION_CONNECT_H
38#define MAX_ATTR_NAME_CHARS 32
39#define MAX_ATTR_VALUE_CHARS 1024
40#define MAX_UTF8MB4_BYTES 4
101 bool read_all)
override;
116 char *attr_name,
uint max_attr_name,
uint *attr_name_length,
117 char *attr_value,
uint max_attr_value,
118 uint *attr_value_length);
Definition: pfs_engine_table.h:301
Definition: table_session_connect.h:69
virtual bool match(PFS_thread *pfs)
Definition: table_session_connect.cc:39
~PFS_index_session_connect() override=default
PFS_index_session_connect()
Definition: table_session_connect.h:71
PFS_key_name m_key_2
Definition: table_session_connect.h:83
PFS_key_processlist_id m_key_1
Definition: table_session_connect.h:82
Definition: table_helper.h:1548
Definition: table_helper.h:1308
Cursor CURSOR_BY_THREAD_CONNECT_ATTR.
Definition: cursor_by_thread_connect_attr.h:61
Abstract table PERFORMANCE_SCHEMA.SESSION_CONNECT_ATTRS.
Definition: table_session_connect.h:87
int index_init(uint idx, bool sorted) override
Definition: table_session_connect.cc:75
~table_session_connect() override
Definition: table_session_connect.cc:71
table_session_connect(const PFS_engine_table_share *share)
Definition: table_session_connect.cc:59
int index_next() override
Find key in index, read record.
Definition: table_session_connect.cc:82
char * m_copy_session_connect_attrs
Safe copy of PFS_thread::m_session_connect_attrs.
Definition: table_session_connect.h:107
uint m_copy_session_connect_attrs_length
Safe copy of PFS_thread::m_session_connect_attrs_length.
Definition: table_session_connect.h:109
PFS_index_session_connect * m_opened_index
Definition: table_session_connect.h:111
row_session_connect_attrs m_row
Current row.
Definition: table_session_connect.h:105
int make_row(PFS_thread *pfs, uint ordinal) override
Definition: table_session_connect.cc:234
int read_row_values(TABLE *table, unsigned char *buf, Field **fields, bool read_all) override
Read the current row values.
Definition: table_session_connect.cc:310
virtual bool thread_fits(PFS_thread *thread)
Definition: table_session_connect.cc:351
Definition: buf0block_hint.cc:30
Data types for columns used in the performance schema tables (declarations)
static const LEX_CSTRING pfs
Definition: sql_show_processlist.cc:66
Definition: m_ctype.h:385
A PERFORMANCE_SCHEMA table share.
Definition: pfs_engine_table.h:359
Instrumented thread implementation.
Definition: pfs_instr.h:373
A row of PERFORMANCE_SCHEMA.SESSION_CONNECT_ATTRS and PERFORMANCE_SCHEMA.SESSION_ACCOUNT_CONNECT_ATTR...
Definition: table_session_connect.h:54
char m_attr_name[MAX_ATTR_NAME_CHARS *MAX_UTF8MB4_BYTES]
Column ATTR_NAME.
Definition: table_session_connect.h:58
ulong m_process_id
Column PROCESS_ID.
Definition: table_session_connect.h:56
uint m_attr_value_length
Length in bytes of m_attr_name.
Definition: table_session_connect.h:64
char m_attr_value[MAX_ATTR_VALUE_CHARS *MAX_UTF8MB4_BYTES]
Column ATTR_VALUE.
Definition: table_session_connect.h:62
ulong m_ordinal_position
Column ORDINAL_POSITION.
Definition: table_session_connect.h:66
uint m_attr_name_length
Length in bytes of m_attr_name.
Definition: table_session_connect.h:60
Helpers to implement a performance schema table.
#define MAX_ATTR_VALUE_CHARS
Definition: table_session_connect.h:39
#define MAX_UTF8MB4_BYTES
Definition: table_session_connect.h:40
bool read_nth_attr(const char *connect_attrs, uint connect_attrs_length, const CHARSET_INFO *connect_attrs_cs, uint ordinal, char *attr_name, uint max_attr_name, uint *attr_name_length, char *attr_value, uint max_attr_value, uint *attr_value_length)
Take the nth attribute name/value pair.
Definition: table_session_connect.cc:190
field_offsets
symbolic names for field offsets, keep in sync with field_types
Definition: table_session_connect.h:43
@ FO_ORDINAL_POSITION
Definition: table_session_connect.h:47
@ FO_ATTR_NAME
Definition: table_session_connect.h:45
@ FO_ATTR_VALUE
Definition: table_session_connect.h:46
@ FO_PROCESS_ID
Definition: table_session_connect.h:44
#define MAX_ATTR_NAME_CHARS
Definition: table_session_connect.h:38
unsigned int uint
Definition: uca9-dump.cc:75