2
# Verify that MD5() function returns a deterministic result
3
# when successively supplied with the same constant.
6
SELECT MD5("I love testing");
7
SELECT MD5("I love testing");
10
# Check that the hash of a constant is identical to the hash
11
# of the same constant stored in a table column.
15
DROP TABLE IF EXISTS t1;
19
some_text VARCHAR(100) NOT NULL
21
INSERT INTO t1 VALUES ("I love testing");
22
SELECT MD5("I love testing") = MD5(some_text) FROM t1;