ClickHouse/tests/queries/0_stateless/02012_sha512_fixedstring.sql

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

22 lines
462 B
MySQL
Raw Normal View History

2021-09-12 12:35:27 +00:00
-- Tags: no-fasttest
-- Tag no-fasttest: Depends on OpenSSL
2021-08-19 07:56:47 +00:00
SELECT hex(SHA512(''));
SELECT hex(SHA512('abc'));
2023-12-07 16:57:57 +00:00
SELECT hex(SHA512_256(''));
SELECT hex(SHA512_256('abc'));
2021-08-19 07:56:47 +00:00
DROP TABLE IF EXISTS defaults;
CREATE TABLE defaults
(
s FixedString(20)
)ENGINE = Memory();
INSERT INTO defaults SELECT s FROM generateRandom('s FixedString(20)', 1, 1, 1) LIMIT 20;
SELECT hex(SHA512(s)) FROM defaults;
2023-12-07 16:57:57 +00:00
SELECT hex(SHA512_256(s)) FROM defaults;
2021-08-19 07:56:47 +00:00
DROP TABLE defaults;