dbms: logging query in one line [#METR-15530].

This commit is contained in:
Alexey Milovidov 2015-03-18 06:13:34 +03:00
parent ed4c4292aa
commit 8eaa75dadb

View File

@ -83,7 +83,9 @@ void executeQuery(
String query(begin, query_size);
LOG_DEBUG(&Logger::get("executeQuery"), query);
String logged_query = query;
std::replace(logged_query.begin(), logged_query.end(), '\n', ' ');
LOG_DEBUG(&Logger::get("executeQuery"), logged_query);
/// Положим запрос в список процессов. Но запрос SHOW PROCESSLIST класть не будем.
ProcessList::EntryPtr process_list_entry;