2001-09-28 07:05:54 +02:00
|
|
|
select length(encrypt('foo', 'ff')) <> 0;
|
2001-05-23 01:30:17 +02:00
|
|
|
length(encrypt('foo', 'ff')) <> 0
|
|
|
|
1
|
2003-02-07 16:57:07 +01:00
|
|
|
select old_password('test'), password('test');
|
|
|
|
old_password('test') password('test')
|
|
|
|
378b243e220ca493 378b243e220ca493
|
|
|
|
select length(encrypt('test')), encrypt('test','aa');
|
|
|
|
length(encrypt('test')) encrypt('test','aa')
|
|
|
|
13 aaqPiZY5xR5l.
|
2003-10-21 12:14:06 +02:00
|
|
|
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;
|