mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Bug#23924 general_log truncates queries with character set introducers.
Problem: logging of utf8-incompatible binary strings didn't work Fix: hex-encoding of incompatible sequences.
This commit is contained in:
@ -418,6 +418,7 @@ bool Log_to_csv_event_handler::
|
||||
A positive return value in store() means truncation.
|
||||
Still logging a message in the log in this case.
|
||||
*/
|
||||
table->field[5]->flags|= FIELDFLAG_HEX_ESCAPE;
|
||||
if (table->field[5]->store(sql_text, sql_text_len, client_cs) < 0)
|
||||
goto err;
|
||||
|
||||
|
Reference in New Issue
Block a user