1#ifndef SQL_DATA_CHANGE_INCLUDED
2#define SQL_DATA_CHANGE_INCLUDED
327 stats.error_count = 0;
Kerberos Client Authentication nullptr
Definition: auth_kerberos_client_plugin.cc:251
Definition: sql_data_change.h:76
ha_rows deleted
Number of deleted records.
Definition: sql_data_change.h:87
ha_rows records
Number of processed records.
Definition: sql_data_change.h:86
ha_rows copied
Number of copied records.
Definition: sql_data_change.h:89
ha_rows touched
Definition: sql_data_change.h:91
Statistics()
Definition: sql_data_change.h:78
ha_rows error_count
Definition: sql_data_change.h:90
ha_rows updated
Number of updated records.
Definition: sql_data_change.h:88
This class encapsulates a data change operation.
Definition: sql_data_change.h:74
const mem_root_deque< Item * > * get_changed_columns2() const
Definition: sql_data_change.h:256
MY_BITMAP * m_function_default_columns
Bitmap: bit is set if we should set column number i to its function default.
Definition: sql_data_change.h:120
COPY_INFO(const COPY_INFO &other)
undefined
Statistics stats
Definition: sql_data_change.h:153
operation_type
Definition: sql_data_change.h:94
@ UPDATE_OPERATION
Definition: sql_data_change.h:94
@ INSERT_OPERATION
Definition: sql_data_change.h:94
enum enum_duplicates handle_duplicates
Policy for handling insertion of duplicate values.
Definition: sql_data_change.h:123
bool get_function_default_columns(TABLE *table)
This function will, unless done already, calculate and keep the set of function default columns.
Definition: sql_data_change.cc:73
const operation_type m_optype
Describes the data change operation that this object represents.
Definition: sql_data_change.h:101
COPY_INFO(operation_type optype, mem_root_deque< Item * > *fields, mem_root_deque< Item * > *values)
Initializes this data change operation as an SQL UPDATE (multi- or not).
Definition: sql_data_change.h:235
operation_type get_operation_type() const
Definition: sql_data_change.h:250
const bool m_manage_defaults
Whether this object must manage function defaults.
Definition: sql_data_change.h:117
void reset_counters()
Reset counters before the next execution.
Definition: sql_data_change.h:322
MY_BITMAP * get_cached_bitmap() const
The column bitmap which has been cached for this data change operation.
Definition: sql_data_change.h:150
enum_duplicates get_duplicate_handling() const
Definition: sql_data_change.h:262
int escape_char
Definition: sql_data_change.h:154
bool ignore_last_columns(TABLE *table, uint count)
Tells the object to not manage function defaults for the last 'count' columns of 'table'.
Definition: sql_data_change.cc:172
COPY_INFO(operation_type optype, mem_root_deque< Item * > *inserted_columns, mem_root_deque< Item * > *inserted_columns2, bool manage_defaults, enum_duplicates duplicates_handling, int escape_character)
Definition: sql_data_change.h:209
void operator=(COPY_INFO &)
undefined
virtual ~COPY_INFO()=default
This class allocates its memory in a MEM_ROOT, so there's nothing to delete.
mem_root_deque< Item * > * m_changed_columns
List of columns of the target table which the statement will explicitly fill; and thus we must not se...
Definition: sql_data_change.h:108
mem_root_deque< Item * > * m_changed_columns2
A second list of columns like m_changed_columns.
Definition: sql_data_change.h:114
mem_root_deque< Item * > * update_values
Values for UPDATE; needed by write_record() if INSERT with DUP_UPDATE.
Definition: sql_data_change.h:156
COPY_INFO(operation_type optype, mem_root_deque< Item * > *inserted_columns, bool manage_defaults, enum_duplicates duplicate_handling)
Initializes this data change operation as an SQL INSERT (with all possible syntaxes and variants).
Definition: sql_data_change.h:172
int last_errno
Definition: sql_data_change.h:154
bool function_defaults_apply(const TABLE *) const
True if this operation will set some fields to function default result values when invoked on the tab...
Definition: sql_data_change.h:307
void cleanup()
Cleanup memory allocated by this object.
Definition: sql_data_change.h:332
bool add_function_default_columns(TABLE *table, MY_BITMAP *columns)
Adds the columns that are bound to receive default values from a function (e.g.
Definition: sql_data_change.h:294
mem_root_deque< Item * > * get_changed_columns() const
Definition: sql_data_change.h:252
bool function_defaults_apply_on_columns(MY_BITMAP *map)
True if any of the columns set in the bitmap have default functions that may set the column.
Definition: sql_data_change.h:316
bool get_manage_defaults() const
Definition: sql_data_change.h:260
bool set_function_defaults(TABLE *table)
Assigns function default values to columns of the supplied table.
Definition: sql_data_change.cc:132
Base class that is used to represent any kind of expression in a relational query.
Definition: item.h:936
Definition: sql_list.h:467
A (partial) implementation of std::deque allocating its blocks on a MEM_ROOT.
Definition: mem_root_deque.h:111
static bool escape_character(char c, String *buf)
Escape a special character in a JSON string, as described in double_quote(), and append it to a buffe...
Definition: json_dom.cc:1121
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1141
bool bitmap_is_overlapping(const MY_BITMAP *map1, const MY_BITMAP *map2)
Definition: my_bitmap.cc:301
bool bitmap_is_clear_all(const MY_BITMAP *map)
Definition: my_bitmap.cc:268
void bitmap_union(MY_BITMAP *map, const MY_BITMAP *map2)
Definition: my_bitmap.cc:389
static int count
Definition: myisam_ftdump.cc:45
static PFS_engine_table_share_proxy table
Definition: pfs.cc:61
std::map< Key, Value, Compare, ut::allocator< std::pair< const Key, Value > > > map
Specialization of map which uses ut_allocator.
Definition: ut0new.h:2892
enum_duplicates
Definition: sql_data_change.h:48
@ DUP_REPLACE
Definition: sql_data_change.h:48
@ DUP_UPDATE
Definition: sql_data_change.h:48
@ DUP_ERROR
Definition: sql_data_change.h:48
Definition: my_bitmap.h:43
Definition: mysqlslap.cc:240