Thinkphp6.0.12LTS Find_in_set错误
find_in_set 有错误,参数放反了。
版本 Thinkphp6.0.12LTS
src\db\builder\Mysql.php
line:289
protected function parseFindInSet(Query $query, string $key, string $exp, $value, string $field): string
{
if ($value instanceof Raw) {
$value = $this->parseRaw($query, $value);
}
//return 'FIND_IN_SET(' . $value . ', ' . $key . ')';
//改成
return 'FIND_IN_SET(' . $key . ', ' . $value . ')';
}