ClickHouse/tests/queries/0_stateless/02353_translate.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
958 B
MySQL
Raw Normal View History

SELECT translate('Hello? world.', '.?', '!,');
SELECT translate('gtcttgcaag', 'ACGTacgt', 'TGCAtgca');
SELECT translate(toString(number), '0123456789', 'abcdefghij') FROM numbers(987654, 5);
SELECT translateUTF8('HôtelGenèv', 'Ááéíóúôè', 'aaeiouoe');
SELECT translateUTF8('中文内码', '久标准中文内码', 'ユニコードとは');
SELECT translateUTF8(toString(number), '1234567890', 'ዩय𐑿𐐏নՅðй¿ค') FROM numbers(987654, 5);
2022-07-13 01:41:27 +00:00
SELECT translate('abc', '', '');
SELECT translateUTF8('abc', '', '');
2024-11-07 03:29:22 +00:00
SELECT translate('abc', 'Ááéíóúôè', 'aaeiouoe'); -- { serverError BAD_ARGUMENTS }
SELECT translateUTF8('abc', 'efg', '');
SELECT translateUTF8('中文内码', '中文', '');
SELECT translate('aAbBcC', 'abc', '12');
2024-11-08 03:10:06 +00:00
SELECT translate('aAbBcC', 'abc', '1235');
2024-12-02 04:23:00 +00:00
SELECT translate('aAbBcC', 'abc', '');
2024-12-03 01:39:05 +00:00
SELECT translate('abc', 'abc', '');
2024-11-08 03:10:06 +00:00
SELECT translate('aAbBcC', '中文内码', '12'); -- { serverError BAD_ARGUMENTS }