mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Also unescape backslashes
This commit is contained in:
parent
20211451ae
commit
d060b7111d
@ -39,8 +39,9 @@ String getUnescapedFieldString(const Field & field)
|
||||
if (!string.empty() && string.front() == '\'' && string.back() == '\'')
|
||||
string = string.substr(1, string.size() - 2);
|
||||
|
||||
/// Backqouting will be performed on dictionary providers side
|
||||
/// Escaping will be performed on dictionary providers side
|
||||
boost::replace_all(string, "\\'", "'");
|
||||
boost::replace_all(string, "\\\\", "\\");
|
||||
return string;
|
||||
}
|
||||
|
||||
|
@ -234,7 +234,7 @@ def test_dictionary_with_where(started_cluster):
|
||||
DB 'clickhouse'
|
||||
TABLE 'special_table'
|
||||
REPLICA(PRIORITY 1 HOST 'mysql1' PORT 3306)
|
||||
WHERE 'value1 = \\'qweqwe\\''
|
||||
WHERE 'value1 = \\'qweqwe\\' OR value1 = \\'\\\\u3232\\''
|
||||
))
|
||||
LAYOUT(FLAT())
|
||||
LIFETIME(MIN 1 MAX 3)
|
||||
|
Loading…
Reference in New Issue
Block a user