mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
44b2807e4b
Fixed bug in end space handle for WHERE text_column="constant" heap/hp_hash.c: Optimzations (no change of logic) libmysql/libmysql.c: Added missing casts (portability fix) myisam/mi_key.c: Changed macro to take arguments and not depend on local variables Simple indentation fixes ? mysql-test/r/connect.result: Added test for setting empty password mysql-test/r/create_select_tmp.result: TYPE -> ENGINE mysql-test/r/ctype_utf8.result: Combine drop's mysql-test/r/endspace.result: Added more tests to test end space behaviour mysql-test/r/having.result: Added missing DROP TABLE mysql-test/r/type_blob.result: Added more tests to ensure that fix for BLOB usage is correct mysql-test/r/type_timestamp.result: Add test from 4.0 mysql-test/t/connect.test: Added test for setting empty password mysql-test/t/create_select_tmp.test: TYPE -> ENGINE mysql-test/t/ctype_utf8.test: Combine drop's mysql-test/t/endspace.test: Added more tests to test end space behaviour mysql-test/t/having.test: Added missing DROP TABLE mysql-test/t/type_blob.test: Added more tests to ensure that fix for BLOB usage is correct mysql-test/t/type_timestamp.test: Add test from 4.0 sql/field.cc: Removed not used variable Portability fix (cast) Simplified Field_str::double() Simple indentation cleanups sql/field.h: Removed not needed class variable sql/item_cmpfunc.cc: Indentation fix sql/item_strfunc.cc: Use on stack variable for Item_str_func::val() instead of str_value. This makes it safe to use str_value inside the Item's val function. Cleaned up LEFT() usage, thanks to the above change sql/item_sum.cc: Indentation cleanups sql/protocol.cc: Added missing cast sql/sql_acl.cc: Indentatin cleanups. Added missing cast Simple optimization of get_sort() sql/sql_select.cc: Don't use 'ref' to search on text field that is not of type BINARY (use 'range' instead). The reson is that for 'ref' we use 'index_next_same' to read the next possible row. For text fields, rows in a ref may not come in order, like for 'x', 'x\t' 'x ' (stored in this order) which causes a search for 'column='x ' to fail sql/tztime.cc: Simple cleanup strings/ctype-bin.c: Comment fixes strings/ctype-mb.c: Changed variable names for arguments
75 lines
2 KiB
Text
75 lines
2 KiB
Text
# This test is to check various cases of connections
|
|
# with right and wrong password, with and without database
|
|
# Unfortunately the check is incomplete as we can't handle errors on connect
|
|
# Also we can't connect without database
|
|
|
|
#connect (con1,localhost,root,,"");
|
|
#show tables;
|
|
connect (con1,localhost,root,,mysql);
|
|
show tables;
|
|
connect (con1,localhost,root,,test);
|
|
show tables;
|
|
|
|
# Re enable this one day if error handling on connect will take place
|
|
|
|
#connect (con1,localhost,root,z,test2);
|
|
#--error 1045
|
|
#connect (con1,localhost,root,z,);
|
|
#--error 1045
|
|
|
|
grant ALL on *.* to test@localhost identified by "gambling";
|
|
grant ALL on *.* to test@127.0.0.1 identified by "gambling";
|
|
|
|
# Now check this user with different databases
|
|
|
|
#connect (con1,localhost,test,gambling,"");
|
|
#show tables;
|
|
connect (con1,localhost,test,gambling,mysql);
|
|
show tables;
|
|
connect (con1,localhost,test,gambling,test);
|
|
show tables;
|
|
|
|
# Re enable this one day if error handling on connect will take place
|
|
|
|
#connect (con1,localhost,test,,test2);
|
|
#--error 1045
|
|
#connect (con1,localhost,test,,"");
|
|
#--error 1045
|
|
#connect (con1,localhost,test,zorro,test2);
|
|
#--error 1045
|
|
#connect (con1,localhost,test,zorro,);
|
|
#--error 1045
|
|
|
|
|
|
# check if old password version also works
|
|
update mysql.user set password=old_password("gambling2") where user=_binary"test";
|
|
flush privileges;
|
|
|
|
#connect (con1,localhost,test,gambling2,"");
|
|
#show tables;
|
|
connect (con1,localhost,test,gambling2,mysql);
|
|
set password="";
|
|
--error 1105
|
|
set password='gambling3';
|
|
set password=old_password('gambling3');
|
|
show tables;
|
|
connect (con1,localhost,test,gambling3,test);
|
|
show tables;
|
|
|
|
# Re enable this one day if error handling on connect will take place
|
|
|
|
#connect (con1,localhost,test,,test2);
|
|
#--error 1045
|
|
#connect (con1,localhost,test,,);
|
|
#--error 1045
|
|
#connect (con1,localhost,test,zorro,test2);
|
|
#--error 1045
|
|
#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=_binary"test";
|
|
flush privileges;
|