ClickHouse/tests/queries/0_stateless/02337_base58.sql

13 lines
621 B
MySQL
Raw Normal View History

2022-06-19 18:10:28 +00:00
-- Tags: no-fasttest
SET send_logs_level = 'fatal';
SELECT base58Encode('Hold my beer...');
2022-07-16 16:58:47 +00:00
SELECT base58Encode('Hold my beer...', 'Second arg'); -- { serverError 42 }
SELECT base58Decode('Hold my beer...'); -- { serverError 36 }
2022-06-19 18:10:28 +00:00
2022-07-16 16:58:47 +00:00
SELECT base58Decode(encoded) FROM (SELECT base58Encode(val) as encoded FROM (select arrayJoin(['', 'f', 'fo', 'foo', 'foob', 'fooba', 'foobar', 'Hello world!']) val));
2022-06-19 18:10:28 +00:00
SELECT base58Encode(val) FROM (select arrayJoin(['', 'f', 'fo', 'foo', 'foob', 'fooba', 'foobar']) val);
SELECT base58Decode(val) FROM (select arrayJoin(['', '2m', '8o8', 'bQbp', '3csAg9', 'CZJRhmz', 't1Zv2yaZ']) val);