| 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 |
no test coverage detected