mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
0f9932a162
Added counting of rollback's and commits Fixed bug in 'SELECT 0 LIMIT 0' Fixed bug in 'SELECT SQL_CALC_FOUND_ROWS' Docs/manual.texi: Changelog configure.in: Cleanup myisam/myisamchk.c: Fix some bugs introduced with the new my_getopt mysql-test/r/limit.result: Test for bugfix mysql-test/r/rpl000001.result: fix wrong result mysql-test/r/select.result: Fix things after fixing ignore index() mysql-test/r/select_found.result: Test of bug in SQL_CALC_FOUND_ROWS mysql-test/t/limit.test: Test bug in LIMIT 0 mysql-test/t/rpl000001.test: fix wrong result mysql-test/t/select_found.test: Test of bug in SQL_CALC_FOUND_ROWS sql/handler.cc: Added counting of rollback's and commits sql/mysql_priv.h: Added counting of rollback's and commits sql/mysqld.cc: Added counting of rollback's and commits sql/sql_select.cc: Fixed bug in 'SELECT 0 LIMIT 0' Fixed bug in 'SELECT SQL_CALC_FOUND_ROWS'
95 lines
1.9 KiB
Text
95 lines
1.9 KiB
Text
slave stop;
|
|
reset master;
|
|
reset slave;
|
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
|
slave start;
|
|
use test;
|
|
drop table if exists t1,t3;
|
|
create table t1 (word char(20) not null);
|
|
load data infile '../../std_data/words.dat' into table t1;
|
|
load data local infile 'MYSQL_TEST_DIR/std_data/words.dat' into table t1;
|
|
select * from t1;
|
|
word
|
|
Aarhus
|
|
Aaron
|
|
Ababa
|
|
aback
|
|
abaft
|
|
abandon
|
|
abandoned
|
|
abandoning
|
|
abandonment
|
|
abandons
|
|
Aarhus
|
|
Aaron
|
|
Ababa
|
|
aback
|
|
abaft
|
|
abandon
|
|
abandoned
|
|
abandoning
|
|
abandonment
|
|
abandons
|
|
set password for root@"localhost" = password('foo');
|
|
set password for root@"localhost" = password('');
|
|
create table t3(n int);
|
|
insert into t3 values(1),(2);
|
|
use test;
|
|
select * from t3;
|
|
n
|
|
1
|
|
2
|
|
select sum(length(word)) from t1;
|
|
sum(length(word))
|
|
141
|
|
drop table t1,t3;
|
|
reset master;
|
|
slave stop;
|
|
reset slave;
|
|
drop table if exists t1,t2;
|
|
create table t1(n int);
|
|
select get_lock("hold_slave",10);
|
|
get_lock("hold_slave",10)
|
|
1
|
|
slave start;
|
|
select release_lock("hold_slave");
|
|
release_lock("hold_slave")
|
|
1
|
|
unlock tables;
|
|
create table t2(id int);
|
|
insert into t2 values(connection_id());
|
|
create temporary table t1_temp(n int);
|
|
insert into t1_temp select get_lock('crash_lock%20C', 1) from t2;
|
|
update t1 set n = n + get_lock('crash_lock%20C', 2);
|
|
select (@id := id) - id from t2;
|
|
(@id := id) - id
|
|
0
|
|
kill @id;
|
|
drop table t2;
|
|
Server shutdown in progress
|
|
set sql_slave_skip_counter=1;
|
|
slave start;
|
|
select count(*) from t1;
|
|
count(*)
|
|
5000
|
|
drop table t1;
|
|
create table t1 (n int);
|
|
insert into t1 values(3456);
|
|
use mysql;
|
|
insert into user (Host, User, Password)
|
|
VALUES ("10.10.10.%", "blafasel2", password("blafasel2"));
|
|
select select_priv,user from mysql.user where user = 'blafasel2';
|
|
select_priv user
|
|
N blafasel2
|
|
update user set Select_priv = "Y" where User="blafasel2";
|
|
select select_priv,user from mysql.user where user = 'blafasel2';
|
|
select_priv user
|
|
Y blafasel2
|
|
use test;
|
|
select n from t1;
|
|
n
|
|
3456
|
|
select select_priv,user from mysql.user where user = 'blafasel2';
|
|
select_priv user
|
|
Y blafasel2
|
|
drop table t1;
|