• Sreeharsha Ramanavarapu's avatar
    Bug #22023218: MYSQL 5.5: MAIN.FULLTEXT HAS VALGRIND ISSUES. · 5e9a50ef
    Sreeharsha Ramanavarapu authored
    
    Issue
    -----
    This problem occurs when varchar columns are used in a
    internal temporary table. The type of the field is set
    incorrectly to the generic FIELD_NORMAL type. This in turn
    results in an inaccurate calculation of the record length.
    Valgrind issues will occur since initialization has not
    happend for some bytes.
    
    Fix
    ----
    While creating the temporary table, the type of the field
    needs to be to set FIELD_VARCHAR. This will allow myisam
    to calculate the record length accurately.
    
    This fix is a backport of BUG#13350136.
    5e9a50ef
sql_select.cc 580 KB