1#ifndef SQL_DATA_CHANGE_INCLUDED
2#define SQL_DATA_CHANGE_INCLUDED
326 stats.error_count = 0;
Definition: sql_data_change.h:75
ha_rows deleted
Number of deleted records.
Definition: sql_data_change.h:86
ha_rows records
Number of processed records.
Definition: sql_data_change.h:85
ha_rows copied
Number of copied records.
Definition: sql_data_change.h:88
ha_rows touched
Definition: sql_data_change.h:90
Statistics()
Definition: sql_data_change.h:77
ha_rows error_count
Definition: sql_data_change.h:89
ha_rows updated
Number of updated records.
Definition: sql_data_change.h:87
This class encapsulates a data change operation.
Definition: sql_data_change.h:73
const mem_root_deque< Item * > * get_changed_columns2() const
Definition: sql_data_change.h:255
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:119
COPY_INFO(const COPY_INFO &other)
undefined
Statistics stats
Definition: sql_data_change.h:152
operation_type
Definition: sql_data_change.h:93
@ UPDATE_OPERATION
Definition: sql_data_change.h:93
@ INSERT_OPERATION
Definition: sql_data_change.h:93
enum enum_duplicates handle_duplicates
Policy for handling insertion of duplicate values.
Definition: sql_data_change.h:122
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:72
const operation_type m_optype
Describes the data change operation that this object represents.
Definition: sql_data_change.h:100
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:234
operation_type get_operation_type() const
Definition: sql_data_change.h:249
const bool m_manage_defaults
Whether this object must manage function defaults.
Definition: sql_data_change.h:116
void reset_counters()
Reset counters before the next execution.
Definition: sql_data_change.h:321
MY_BITMAP * get_cached_bitmap() const
The column bitmap which has been cached for this data change operation.
Definition: sql_data_change.h:149
enum_duplicates get_duplicate_handling() const
Definition: sql_data_change.h:261
int escape_char
Definition: sql_data_change.h:153
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:171
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:208
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:107
mem_root_deque< Item * > * m_changed_columns2
A second list of columns like m_changed_columns.
Definition: sql_data_change.h:113
mem_root_deque< Item * > * update_values
Values for UPDATE; needed by write_record() if INSERT with DUP_UPDATE.
Definition: sql_data_change.h:155
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:171
int last_errno
Definition: sql_data_change.h:153
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:306
void cleanup()
Cleanup memory allocated by this object.
Definition: sql_data_change.h:331
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:293
mem_root_deque< Item * > * get_changed_columns() const
Definition: sql_data_change.h:251
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:315
bool get_manage_defaults() const
Definition: sql_data_change.h:259
bool set_function_defaults(TABLE *table)
Assigns function default values to columns of the supplied table.
Definition: sql_data_change.cc:131
Base class that is used to represent any kind of expression in a relational query.
Definition: item.h:853
Definition: sql_list.h:433
A (partial) implementation of std::deque allocating its blocks on a MEM_ROOT.
Definition: mem_root_deque.h:109
Fido Client Authentication nullptr
Definition: fido_client_plugin.cc:221
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:1109
This file includes constants used by all storage engines.
my_off_t ha_rows
Definition: my_base.h:1139
bool bitmap_is_overlapping(const MY_BITMAP *map1, const MY_BITMAP *map2)
Definition: my_bitmap.cc:300
bool bitmap_is_clear_all(const MY_BITMAP *map)
Definition: my_bitmap.cc:267
void bitmap_union(MY_BITMAP *map, const MY_BITMAP *map2)
Definition: my_bitmap.cc:388
static int count
Definition: myisam_ftdump.cc:44
static PFS_engine_table_share_proxy table
Definition: pfs.cc:60
std::map< Key, Value, Compare, ut::allocator< std::pair< const Key, Value > > > map
Specialization of map which uses ut_allocator.
Definition: ut0new.h:2891
enum_duplicates
Definition: sql_data_change.h:47
@ DUP_REPLACE
Definition: sql_data_change.h:47
@ DUP_UPDATE
Definition: sql_data_change.h:47
@ DUP_ERROR
Definition: sql_data_change.h:47
Definition: my_bitmap.h:42
Definition: mysqlslap.cc:239