mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 21:12:28 +00:00
c29768325c
executeQuery() logging query without new lines in SQL, and it is useful, since you can grep and see the whole query (usually). So let's use the same in fatal error handler to make CI reports more informative. Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
17 lines
386 B
C++
17 lines
386 B
C++
#pragma once
|
|
|
|
#include <base/types.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
/// Removes new lines from query.
|
|
///
|
|
/// But with some care:
|
|
/// - don't join lines inside non-whitespace tokens (e.g. multiline string literals)
|
|
/// - don't join line after comment (because it can be single-line comment).
|
|
/// All other whitespaces replaced to a single whitespace.
|
|
String toOneLineQuery(const String & query);
|
|
|
|
}
|