Fixed test [#CLICKHOUSE-2].

This commit is contained in:
Alexey Milovidov 2017-04-19 08:35:38 +03:00
parent 53364dcc8d
commit 1d93e93af3
2 changed files with 2 additions and 4 deletions

View File

@ -3,6 +3,6 @@ bar bar
boa b*a boa b*a
foo f** foo f**
54db0d43009d\0\0\0\0 54db0d43009d**** 54db0d43009d\0\0\0\0 54db0d43009d****
fe2b58224766cf10 fe2b58224766cf10
54db0d43009d\0\0\0\0 54db0d43009d**** 54db0d43009d\0\0\0\0 54db0d43009d****
fe2b58224766cf10 fe2b58224766cf10 fe2b58224766cf10 fe2b58224766cf10
fe2b58224766cf10 fe2b58224766cf10

View File

@ -15,9 +15,7 @@ ORDER BY str ASC;
DROP TABLE test.replaceall; DROP TABLE test.replaceall;
CREATE TABLE test.replaceall (date Date DEFAULT today(), fs FixedString(16)) ENGINE = MergeTree(date, (date, fs), 8192); CREATE TABLE test.replaceall (date Date DEFAULT today(), fs FixedString(16)) ENGINE = MergeTree(date, (date, fs), 8192);
INSERT INTO test (fs) VALUES INSERT INTO test.replaceall (fs) VALUES ('54db0d43009d\0\0\0\0'), ('fe2b58224766cf10'), ('54db0d43009d\0\0\0\0'), ('fe2b58224766cf10');
('54db0d43009d\0\0\0\0'), ('fe2b58224766cf10'),
('54db0d43009d\0\0\0\0'), ('fe2b58224766cf10');
SELECT fs, replaceAll(fs, '\0', '*') SELECT fs, replaceAll(fs, '\0', '*')
FROM test.replaceall FROM test.replaceall