Branch: Tag:

2022-01-27

2022-01-27 09:13:52 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Sql.mysql: Fix obscure special case in list_fields().

828:    return fix_result_charset(::list_fields(@a));    }    -  // Very uncommon case, but... -  // +  // Very uncommon cases, but... +  +  if (sizeof(a) == 1) { +  // The split marker has been recoded. +  // Assume that fix_query_charset() is stable. +  return fix_result_charset(::list_fields(fix_query_charset(table)[0], +  fix_query_charset(wild)[0])); +  } +     // Assume that the table name can not contain NUL characters.    return fix_result_charset(::list_fields(a[0], a[1..] * "\0\0PIKE\0\0"));   }