• Alexander Barkov's avatar
    MDEV-20818 ER_CRASHED_ON_USAGE or Assertion `length <= column->length' failed... · 5392726e
    Alexander Barkov authored
    MDEV-20818 ER_CRASHED_ON_USAGE or Assertion `length <= column->length' failed in write_block_record on temporary table
    
    The patch for `MDEV-20795 CAST(inet6 AS BINARY) returns wrong result`
    unintentionally changed what Item_char_typecast::type_handler()
    returns. This broke UNIONs with the BINARY() function, as the Aria
    engine started to get columns of unexpected data types.
    
    Restoring previous behaviour, to return
      Type_handler::string_type_handler(max_length).
    
    The prototype for Item_handed_func::return_type_handler() has changed
    from:
      const Type_handler *return_type_handler() const
    to:
      const Type_handler *return_type_handler(const Item_handled_func *) const
    5392726e
xml.test 28 KB