• unknown's avatar
    InnoDB: Fix Bug #7350 without hard-coding charset-collation numbers. · edf5f0ec
    unknown authored
    
    innobase/data/data0type.c:
      Add mbminlen and mbmaxlen to dtype_t
    innobase/include/data0type.h:
      Add mbminlen and mbmaxlen to dtype_t
      Add dtype_get_mbminlen() and dtype_get_mbmaxlen()
    innobase/include/data0type.ic:
      Add dtype_set_mblen()
      Add dtype_get_mbminlen() and dtype_get_mbmaxlen()
      Replace innobase_is_mb_cset() with innobase_get_mb_cset()
    innobase/include/row0mysql.h:
      Add mbminlen and mbmaxlen
    innobase/include/row0mysql.ic:
      Detect UCS2 collations based on mbminlen
    innobase/row/row0sel.c:
      Detect UCS2 collations based on mbminlen
    sql/ha_innodb.cc:
      Replace innobase_is_mb_cset() with innobase_get_mb_cset()
      build_template(): Initialize templ->mbminlen and templ->mbmaxlen
    edf5f0ec
ha_innodb.cc 181 KB