2021-09-12 12:35:27 +00:00
|
|
|
-- Tags: no-fasttest
|
|
|
|
|
2020-06-20 11:29:01 +00:00
|
|
|
SET send_logs_level = 'fatal';
|
2018-10-10 01:04:07 +00:00
|
|
|
SELECT base64Encode(val) FROM (select arrayJoin(['', 'f', 'fo', 'foo', 'foob', 'fooba', 'foobar']) val);
|
|
|
|
SELECT base64Decode(val) FROM (select arrayJoin(['', 'Zg==', 'Zm8=', 'Zm9v', 'Zm9vYg==', 'Zm9vYmE=', 'Zm9vYmFy']) val);
|
|
|
|
SELECT base64Decode(base64Encode('foo')) = 'foo', base64Encode(base64Decode('Zm9v')) == 'Zm9v';
|
2018-11-02 19:06:05 +00:00
|
|
|
SELECT tryBase64Decode('Zm9vYmF=Zm9v');
|
2018-10-10 01:04:07 +00:00
|
|
|
SELECT base64Decode('Zm9vYmF=Zm9v'); -- { serverError 117 }
|