@@ -644,17 +644,22 @@ struct TABLE_SHARE
644
644
the record then this value is 0.
645
645
*/
646
646
uint null_bytes_for_compare;
647
- uint fields; /* Number of fields */
648
- /* Number of stored fields, generated-only virtual fields are not included */
649
- uint stored_fields;
647
+ uint fields; /* number of fields */
648
+ uint stored_fields; /* number of stored fields, purely virtual not included */
649
+ uint virtual_fields; /* number of purely virtual fields */
650
+ uint null_fields; /* number of null fields */
651
+ uint blob_fields; /* number of blob fields */
652
+ uint varchar_fields; /* number of varchar fields */
653
+ uint default_fields; /* number of default fields */
654
+
655
+ uint default_expressions;
656
+ uint table_check_constraints, field_check_constraints;
657
+
650
658
uint rec_buff_length; /* Size of table->record[] buffer */
651
659
uint keys, key_parts;
652
660
uint ext_key_parts; /* Total number of key parts in extended keys */
653
661
uint max_key_length, max_unique_length, total_key_length;
654
662
uint uniques; /* Number of UNIQUE index */
655
- uint null_fields; /* number of null fields */
656
- uint blob_fields; /* number of blob fields */
657
- uint varchar_fields; /* number of varchar fields */
658
663
uint db_create_options; /* Create options from database */
659
664
uint db_options_in_use; /* Options in use */
660
665
uint db_record_offset; /* if HA_REC_IN_SEQ */
@@ -668,10 +673,7 @@ struct TABLE_SHARE
668
673
uint open_errno; /* error from open_table_def() */
669
674
uint column_bitmap_size;
670
675
uchar frm_version;
671
- uint virtual_fields;
672
- uint default_expressions;
673
- uint table_check_constraints, field_check_constraints;
674
- uint default_fields; /* Number of default fields */
676
+
675
677
bool use_ext_keys; /* Extended keys can be used */
676
678
bool null_field_first;
677
679
bool system; /* Set if system table (one record) */
@@ -682,7 +684,7 @@ struct TABLE_SHARE
682
684
bool table_creation_was_logged;
683
685
bool non_determinstic_insert;
684
686
bool vcols_need_refixing;
685
- bool virtual_stored_fields ;
687
+ bool has_virtual_stored_fields ;
686
688
bool check_set_initialized;
687
689
bool has_update_default_function;
688
690
ulong table_map_id; /* for row-based replication */
@@ -1029,7 +1031,6 @@ struct TABLE
1029
1031
1030
1032
uint32 instance; /* * Table cache instance this TABLE is belonging to */
1031
1033
THD *in_use; /* Which thread uses this */
1032
- Field **field; /* Pointer to fields */
1033
1034
1034
1035
uchar *record[2 ]; /* Pointer to records */
1035
1036
uchar *write_row_record; /* Used as optimisation in
@@ -1059,11 +1060,11 @@ struct TABLE
1059
1060
key_map keys_in_use_for_order_by;
1060
1061
KEY *key_info; /* data of keys in database */
1061
1062
1063
+ Field **field; /* Pointer to fields */
1064
+ Field **vfield; /* Pointer to virtual fields*/
1065
+ Field **default_field; /* Fields with non-constant DEFAULT */
1062
1066
Field *next_number_field; /* Set if next_number is activated */
1063
1067
Field *found_next_number_field; /* Set on open */
1064
- Field **vfield; /* Pointer to virtual fields*/
1065
- /* Fields that are updated automatically on INSERT or UPDATE. */
1066
- Field **default_field;
1067
1068
Virtual_column_info **check_constraints;
1068
1069
1069
1070
/* Table's triggers, 0 if there are no of them */
0 commit comments