• igor@olga.mysql.com's avatar
    Fixed bug #17526: incorrect print method · f201828d
    igor@olga.mysql.com authored
    for class Item_func_trim. 
    For 4.1 it caused wrong output for EXPLAIN EXTENDED commands
    if expressions with the TRIM function of two arguments were used.
    For 5.0 it caused an error message when trying to select
    from a view with the TRIM function of two arguments.
    This unexpected error message was due to the fact that the
    print method for the class Item_func_trim was inherited from
    the class Item_func. Yet the TRIM function does not take a list
    of its arguments. Rather it takes the arguments in the form:
      [{BOTH | LEADING | TRAILING} [remstr] FROM] str) |
      [remstr FROM] str
    f201828d
func_str.test 26.9 KB