summaryrefslogtreecommitdiff
path: root/mysql-test/t/func_crypt.test
blob: c72356bda1a09fe6d84e03482f645d947e6ab487 (plain)
1
2
3
4
5
6
7
8
9
10
-- source include/have_crypt.inc

select length(encrypt('foo', 'ff')) <> 0;
--replace_result $1$aa$4OSUA5cjdx0RUQ08opV27/ aaqPiZY5xR5l.

# Test new and old password handling functions 
select password("a",""), password("a",NULL), password("","a"), password(NULL,"a");
select password("aaaaaaaaaaaaaaaa","a"), password("a","aaaaaaaaaaaaaaaa");
select old_password('test'), length(password("1")), length(encrypt('test')), encrypt('test','aa');
select old_password(""), old_password(NULL), password(""), password(NULL);