summaryrefslogtreecommitdiff
path: root/sql/sql_truncate.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_truncate.cc')
-rw-r--r--sql/sql_truncate.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/sql/sql_truncate.cc b/sql/sql_truncate.cc
index 9bf291a4cbb..7e67b7791d5 100644
--- a/sql/sql_truncate.cc
+++ b/sql/sql_truncate.cc
@@ -40,15 +40,13 @@
*/
static bool fk_info_append_fields(THD *thd, String *str,
- List<Lex_cstring> *fields)
+ st_::span<Lex_cstring> *fields)
{
bool res= FALSE;
- Lex_cstring *field;
- List_iterator_fast<Lex_cstring> it(*fields);
- while ((field= it++))
+ for (const Lex_cstring &field: *fields)
{
- res|= append_identifier(thd, str, field);
+ res|= append_identifier(thd, str, &field);
res|= str->append(STRING_WITH_LEN(", "));
}