mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
resolved conflict with pulled changeset
include/mysql.h: Auto merged include/mysql_com.h: Auto merged libmysql/libmysql.c: Auto merged sql/item_create.cc: Auto merged sql/item_create.h: Auto merged sql/lex.h: Auto merged sql/mysql_priv.h: Auto merged sql/mysqld.cc: Auto merged sql/set_var.cc: Auto merged sql/sql_parse.cc: Auto merged sql/sql_yacc.yy: Auto merged include/mysqld_error.h: manually resolved conflict with ER_VARIABLE_IS_NOT_STRUCT sql/set_var.h: manually resolved conflict sql/share/czech/errmsg.txt: manually resolved conflict with ER_VARIABLE_IS_NOT_STRUCT sql/share/danish/errmsg.txt: manually resolved conflict with ER_VARIABLE_IS_NOT_STRUCT sql/share/dutch/errmsg.txt: manually resolved conflict with ER_VARIABLE_IS_NOT_STRUCT sql/share/english/errmsg.txt: manually resolved conflict with ER_VARIABLE_IS_NOT_STRUCT sql/share/estonian/errmsg.txt: manually resolved conflict with ER_VARIABLE_IS_NOT_STRUCT sql/share/french/errmsg.txt: manually resolved conflict with ER_VARIABLE_IS_NOT_STRUCT sql/share/german/errmsg.txt: manually resolved conflict with ER_VARIABLE_IS_NOT_STRUCT sql/share/greek/errmsg.txt: manually resolved conflict with ER_VARIABLE_IS_NOT_STRUCT sql/share/hungarian/errmsg.txt: manually resolved conflict with ER_VARIABLE_IS_NOT_STRUCT sql/share/italian/errmsg.txt: manually resolved conflict with ER_VARIABLE_IS_NOT_STRUCT sql/share/japanese/errmsg.txt: manually resolved conflict with ER_VARIABLE_IS_NOT_STRUCT sql/share/korean/errmsg.txt: manually resolved conflict with ER_VARIABLE_IS_NOT_STRUCT sql/share/norwegian-ny/errmsg.txt: manually resolved conflict with ER_VARIABLE_IS_NOT_STRUCT sql/share/norwegian/errmsg.txt: manually resolved conflict with ER_VARIABLE_IS_NOT_STRUCT sql/share/polish/errmsg.txt: manually resolved conflict with ER_VARIABLE_IS_NOT_STRUCT sql/share/portuguese/errmsg.txt: manually resolved conflict with ER_VARIABLE_IS_NOT_STRUCT sql/share/romanian/errmsg.txt: manually resolved conflict with ER_VARIABLE_IS_NOT_STRUCT sql/share/russian/errmsg.txt: manually resolved conflict with ER_VARIABLE_IS_NOT_STRUCT sql/share/serbian/errmsg.txt: manually resolved conflict with ER_VARIABLE_IS_NOT_STRUCT sql/share/slovak/errmsg.txt: manually resolved conflict with ER_VARIABLE_IS_NOT_STRUCT sql/share/spanish/errmsg.txt: manually resolved conflict with ER_VARIABLE_IS_NOT_STRUCT sql/share/swedish/errmsg.txt: manually resolved conflict with ER_VARIABLE_IS_NOT_STRUCT sql/share/ukrainian/errmsg.txt: manually resolved conflict with ER_VARIABLE_IS_NOT_STRUCT
This commit is contained in:
@ -30,6 +30,7 @@ show tables;
|
||||
Tables_in_test
|
||||
update mysql.user set password=old_password("gambling2") where user="test";
|
||||
flush privileges;
|
||||
set password=old_password('gambling3');
|
||||
show tables;
|
||||
Tables_in_mysql
|
||||
columns_priv
|
||||
|
@ -1,15 +1,79 @@
|
||||
select length(encrypt('foo', 'ff')) <> 0;
|
||||
length(encrypt('foo', 'ff')) <> 0
|
||||
1
|
||||
select password("a",""), password("a",NULL), password("","a"), password(NULL,"a");
|
||||
password("a","") password("a",NULL) password("","a") password(NULL,"a")
|
||||
*2517f7235d68d4ba2e5019c93420523101157a792c01 NULL NULL
|
||||
select password("aaaaaaaaaaaaaaaa","a"), password("a","aaaaaaaaaaaaaaaa");
|
||||
password("aaaaaaaaaaaaaaaa","a") password("a","aaaaaaaaaaaaaaaa")
|
||||
*2cd3b9a44e9a9994789a30f935c92f45a96c5472f381 *37c7c5c794ff144819f2531bf03c57772cd84e40db09
|
||||
select old_password('test'), length(password("1")), length(encrypt('test')), encrypt('test','aa');
|
||||
old_password('test') length(password("1")) length(encrypt('test')) encrypt('test','aa')
|
||||
378b243e220ca493 45 13 aaqPiZY5xR5l.
|
||||
select old_password(""), old_password(NULL), password(""), password(NULL);
|
||||
old_password("") old_password(NULL) password("") password(NULL)
|
||||
NULL NULL
|
||||
select password('abc');
|
||||
password('abc')
|
||||
*0d3ced9bec10a777aec23ccc353a8c08a633045e
|
||||
select password('');
|
||||
password('')
|
||||
|
||||
select old_password('abc');
|
||||
old_password('abc')
|
||||
7cd2b5942be28759
|
||||
select old_password('');
|
||||
old_password('')
|
||||
|
||||
select password('gabbagabbahey');
|
||||
password('gabbagabbahey')
|
||||
*b0f99d2963660dd7e16b751ec9ee2f17b6a68fa6
|
||||
select old_password('idkfa');
|
||||
old_password('idkfa')
|
||||
5c078dc54ca0fcca
|
||||
select length(password('1'));
|
||||
length(password('1'))
|
||||
41
|
||||
select length(encrypt('test'));
|
||||
length(encrypt('test'))
|
||||
13
|
||||
select encrypt('test','aa');
|
||||
encrypt('test','aa')
|
||||
aaqPiZY5xR5l.
|
||||
select old_password(NULL);
|
||||
old_password(NULL)
|
||||
NULL
|
||||
select password(NULL);
|
||||
password(NULL)
|
||||
NULL
|
||||
set global old_passwords=on;
|
||||
select password('');
|
||||
password('')
|
||||
|
||||
select old_password('');
|
||||
old_password('')
|
||||
|
||||
select password('idkfa');
|
||||
password('idkfa')
|
||||
*b669c9dac3aa6f2254b03cdef8dfdd6b2d1054ba
|
||||
select old_password('idkfa');
|
||||
old_password('idkfa')
|
||||
5c078dc54ca0fcca
|
||||
set old_passwords=on;
|
||||
select password('idkfa');
|
||||
password('idkfa')
|
||||
5c078dc54ca0fcca
|
||||
select old_password('idkfa');
|
||||
old_password('idkfa')
|
||||
5c078dc54ca0fcca
|
||||
set global old_passwords=off;
|
||||
select password('idkfa');
|
||||
password('idkfa')
|
||||
5c078dc54ca0fcca
|
||||
select old_password('idkfa');
|
||||
old_password('idkfa')
|
||||
5c078dc54ca0fcca
|
||||
set old_passwords=off;
|
||||
select password('idkfa ');
|
||||
password('idkfa ')
|
||||
*2dc31d90647b4c1abc9231563d2236e96c9a2db2
|
||||
select password('idkfa');
|
||||
password('idkfa')
|
||||
*b669c9dac3aa6f2254b03cdef8dfdd6b2d1054ba
|
||||
select password(' idkfa');
|
||||
password(' idkfa')
|
||||
*12b099e56bb7fe8d43c78fd834a9d1d11178d045
|
||||
select old_password('idkfa');
|
||||
old_password('idkfa')
|
||||
5c078dc54ca0fcca
|
||||
select old_password(' i d k f a ');
|
||||
old_password(' i d k f a ')
|
||||
5c078dc54ca0fcca
|
||||
|
@ -48,8 +48,9 @@ flush privileges;
|
||||
#connect (con1,localhost,test,gambling2,"");
|
||||
#show tables;
|
||||
connect (con1,localhost,test,gambling2,mysql);
|
||||
set password=old_password('gambling3');
|
||||
show tables;
|
||||
connect (con1,localhost,test,gambling2,test);
|
||||
connect (con1,localhost,test,gambling3,test);
|
||||
show tables;
|
||||
|
||||
# Re enable this one day if error handling on connect will take place
|
||||
@ -63,7 +64,9 @@ show tables;
|
||||
#connect (con1,localhost,test,zorro,);
|
||||
#--error 1045
|
||||
|
||||
|
||||
# remove user 'test' so that other tests which may use 'test'
|
||||
# do not depend on this test.
|
||||
|
||||
delete from mysql.user where user="test";
|
||||
flush privileges;
|
||||
|
@ -4,7 +4,33 @@ 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);
|
||||
select password('abc');
|
||||
select password('');
|
||||
select old_password('abc');
|
||||
select old_password('');
|
||||
select password('gabbagabbahey');
|
||||
select old_password('idkfa');
|
||||
select length(password('1'));
|
||||
select length(encrypt('test'));
|
||||
select encrypt('test','aa');
|
||||
select old_password(NULL);
|
||||
select password(NULL);
|
||||
set global old_passwords=on;
|
||||
select password('');
|
||||
select old_password('');
|
||||
select password('idkfa');
|
||||
select old_password('idkfa');
|
||||
set old_passwords=on;
|
||||
select password('idkfa');
|
||||
select old_password('idkfa');
|
||||
set global old_passwords=off;
|
||||
select password('idkfa');
|
||||
select old_password('idkfa');
|
||||
|
||||
# this test shows that new scrambles honor spaces in passwords:
|
||||
set old_passwords=off;
|
||||
select password('idkfa ');
|
||||
select password('idkfa');
|
||||
select password(' idkfa');
|
||||
select old_password('idkfa');
|
||||
select old_password(' i d k f a ');
|
||||
|
Reference in New Issue
Block a user