1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Fix for bug #1271: Undefined variable in PASSWORD() function is not

handled correctly
This commit is contained in:
gluh@gluh.mysql.r18.ru
2003-10-21 15:14:06 +05:00
parent 91f5c5e337
commit f602be8d3f
3 changed files with 20 additions and 1 deletions

View File

@@ -7,3 +7,13 @@ old_password('test') password('test')
select length(encrypt('test')), encrypt('test','aa');
length(encrypt('test')) encrypt('test','aa')
13 aaqPiZY5xR5l.
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);
name
tom
select name from t1 where name='tom' and pw=password(@undefined);
name
drop table t1;