Fix stuff

This commit is contained in:
Robert Schulze 2023-04-05 20:09:27 +00:00
parent 809a7fbb7a
commit 3e84be5f3a
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A

View File

@ -676,7 +676,7 @@ private:
static bool containsOnlyFixedWidthMySQLFormatters(std::string_view format, bool mysql_M_is_month_name)
{
static constexpr std::array variable_width_formatter = {'W'};
static constexpr std::array variable_width_formatter_M_is_month_name = {'M', 'W'};
static constexpr std::array variable_width_formatter_M_is_month_name = {'W', 'M'};
for (size_t i = 0; i < format.size(); ++i)
{
@ -688,7 +688,7 @@ private:
if (mysql_M_is_month_name)
{
if (std::any_of(
variable_width_formatter.begin(), variable_width_formatter_M_is_month_name.end(),
variable_width_formatter_M_is_month_name.begin(), variable_width_formatter_M_is_month_name.end(),
[&](char c){ return c == format[i + 1]; }))
return false;
}