MCPcopy Create free account
hub / github.com/MariaDB/server / get_stat_values

Method get_stat_values

sql/sql_statistics.cc:906–921  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

904 */
905
906 bool get_stat_values(Table_statistics *read_stats)
907 {
908 bool res;
909 read_stats->cardinality_is_null= TRUE;
910 read_stats->cardinality= 0;
911 if ((res= find_stat()))
912 {
913 Field *stat_field= stat_table->field[TABLE_STAT_CARDINALITY];
914 if (!stat_field->is_null())
915 {
916 read_stats->cardinality_is_null= FALSE;
917 read_stats->cardinality= stat_field->val_int();
918 }
919 }
920 return res;
921 }
922};
923
924

Callers 1

Calls 2

is_nullMethod · 0.45
val_intMethod · 0.45

Tested by

no test coverage detected