mirror of
https://github.com/MariaDB/server.git
synced 2025-07-24 19:42:23 +03:00
cleanup: renames
enum_mark_columns -> enum_column_usage mark_used_columns -> column_usage further commits will replace MARK_COLUMN_NONE with COLUMN_READ and COLUMN_WRITE that convey the intention without causing columns to be marked
This commit is contained in:
@ -92,8 +92,21 @@ enum enum_slave_run_triggers_for_rbr { SLAVE_RUN_TRIGGERS_FOR_RBR_NO,
|
||||
SLAVE_RUN_TRIGGERS_FOR_RBR_LOGGING};
|
||||
enum enum_slave_type_conversions { SLAVE_TYPE_CONVERSIONS_ALL_LOSSY,
|
||||
SLAVE_TYPE_CONVERSIONS_ALL_NON_LOSSY};
|
||||
enum enum_mark_columns
|
||||
|
||||
/*
|
||||
MARK_COLUMNS_NONE: It is unknown whether the column will be read or written
|
||||
MARK_COLUMNS_READ: A column is goind to be read.
|
||||
A bit in read set is set to inform handler that the field
|
||||
is to be read. If field list contains duplicates, then
|
||||
thd->dup_field is set to point to the last found
|
||||
duplicate.
|
||||
MARK_COLUMNS_WRITE: A column is going to be written to.
|
||||
A bit is set in write set to inform handler that it needs
|
||||
to update this field in write_row and update_row.
|
||||
*/
|
||||
enum enum_column_usage
|
||||
{ MARK_COLUMNS_NONE, MARK_COLUMNS_READ, MARK_COLUMNS_WRITE};
|
||||
|
||||
enum enum_filetype { FILETYPE_CSV, FILETYPE_XML };
|
||||
|
||||
enum enum_binlog_row_image {
|
||||
@ -1076,18 +1089,7 @@ public:
|
||||
*/
|
||||
ulong id;
|
||||
|
||||
/*
|
||||
MARK_COLUMNS_NONE: Means mark_used_colums is not set and no indicator to
|
||||
handler of fields used is set
|
||||
MARK_COLUMNS_READ: Means a bit in read set is set to inform handler
|
||||
that the field is to be read. If field list contains
|
||||
duplicates, then thd->dup_field is set to point
|
||||
to the last found duplicate.
|
||||
MARK_COLUMNS_WRITE: Means a bit is set in write set to inform handler
|
||||
that it needs to update this field in write_row
|
||||
and update_row.
|
||||
*/
|
||||
enum enum_mark_columns mark_used_columns;
|
||||
enum enum_column_usage column_usage;
|
||||
|
||||
LEX_CSTRING name; /* name for named prepared statements */
|
||||
LEX *lex; // parse tree descriptor
|
||||
|
Reference in New Issue
Block a user