1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Added some checking that LEX_CSTRING is \0 terminated

- When adding LEX_CSTRING to String, we are now checking that
  string is \0 terminated (as normally LEX_CSTRING should be
  usable for printf(). In the cases when one wants to avoid the
  checking one can use String->append(ptr, length) instead of just
  String->append(LEX_CSTRING*)
This commit is contained in:
Monty
2018-01-19 19:56:34 +02:00
parent f55dc7f733
commit 486c86dd39
6 changed files with 30 additions and 19 deletions

View File

@ -7217,7 +7217,7 @@ void append_row_to_str(String &str, const uchar *row, TABLE *table)
{
Field *field= *field_ptr;
str.append(" ");
str.append(field->field_name);
str.append(&field->field_name);
str.append(":");
field_unpack(&str, field, rec, 0, false);
}