ClickHouse/tests/queries/0_stateless/02012_sha512_fixedstring.sql
2021-08-19 07:56:47 +00:00

15 lines
300 B
SQL

SELECT hex(SHA512(''));
SELECT hex(SHA512('abc'));
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;
DROP TABLE defaults;