1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-05 13:16:09 +03:00

MDEV-34679 ER_BAD_FIELD uses non-localizable substrings

This commit is contained in:
Sergei Golubchik
2024-07-18 15:20:42 +02:00
parent 99178311ac
commit 3a1cf2c85b
349 changed files with 1218 additions and 1796 deletions

View File

@@ -638,6 +638,7 @@ mysql_ha_fix_cond_and_key(SQL_HANDLER *handler,
"WHERE", "HANDLER");
return 1; // ROWNUM() used
}
thd->where= THD_WHERE::WHERE_CLAUSE;
if (cond->fix_fields_if_needed_for_bool(thd, &cond))
return 1;
}
@@ -696,6 +697,7 @@ mysql_ha_fix_cond_and_key(SQL_HANDLER *handler,
return 1;
}
thd->where= THD_WHERE::HANDLER_STATEMENT;
for (keypart_map= key_len=0 ; (item=it_ke++) ; key_part++)
{
/* note that 'item' can be changed by fix_fields() call */