ClickHouse/tests/queries/0_stateless/01338_sha256_fixedstring.sql
feng lv 093698c607 add test
fix

fix

fix
2020-06-23 19:53:26 +08:00

15 lines
300 B
SQL

SELECT hex(SHA256(''));
SELECT hex(SHA256('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(SHA256(s)) FROM defaults;
DROP TABLE defaults;