mirror of
https://github.com/MariaDB/server.git
synced 2026-04-20 07:15:33 +02:00
Fix for bug #1271: Undefined variable in PASSWORD() function is not
handled correctly
This commit is contained in:
parent
14affe7e2f
commit
42de9a3ed9
3 changed files with 20 additions and 1 deletions
|
|
@ -4,3 +4,12 @@ select length(encrypt('foo', 'ff')) <> 0;
|
|||
--replace_result $1$aa$4OSUA5cjdx0RUQ08opV27/ aaqPiZY5xR5l.
|
||||
select old_password('test'), password('test');
|
||||
select length(encrypt('test')), encrypt('test','aa');
|
||||
|
||||
drop table if exists t1;
|
||||
create table t1 (name varchar(50), pw varchar(16));
|
||||
insert into t1 values ('tom', password('my_pass'));
|
||||
set @pass='my_pass';
|
||||
select name from t1 where name='tom' and pw=password(@pass);
|
||||
select name from t1 where name='tom' and pw=password(@undefined);
|
||||
drop table t1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue