• Alexander Barkov's avatar
    Bug#60101 COALESCE with cp1251 tables causes [Err] 1267 - Illegal mix of collations · 0db53b19
    Alexander Barkov authored
          
    Problem:
      IF() did not copy collation derivation and repertoire from
      an argument if the opposite argument was NULL:
        IF(cond, res1, NULL)
        IF(cond, NULL, res2)
      only CHARSET_INFO pointer was copied.
      This resulted in illegal mix of collations error.
    
    Fix:
      copy all collation parameters from the non-NULL argument:
      CHARSET_INFO pointer, derivation, repertoire.
    0db53b19
item_cmpfunc.cc 145 KB