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

Method Key_part_spec_init_ft

sql/sql_table.cc:2795–2806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2793
2794
2795bool Type_handler_string::Key_part_spec_init_ft(Key_part_spec *part,
2796 const Column_definition &def)
2797 const
2798{
2799 /*
2800 Set length to 0. It's set to the real column width later for CHAR.
2801 It has to be the correct col width for CHAR, as its data are not
2802 prefixed with length (unlike blobs).
2803 */
2804 part->length= 0;
2805 return !Charset(def.charset).is_good_for_ft();
2806}
2807
2808
2809bool Type_handler_varchar::Key_part_spec_init_ft(Key_part_spec *part,

Callers 1

init_key_part_specFunction · 0.45

Calls 2

CharsetClass · 0.85
is_good_for_ftMethod · 0.80

Tested by

no test coverage detected