mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
6bc97ffaee
Add optional second parameter to password() function. It can be used to force password() to return fixed values.
8 lines
483 B
Text
8 lines
483 B
Text
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);
|