mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
merge
sql/item_cmpfunc.cc: Auto merged sql/item_subselect.cc: Auto merged sql/item_subselect.h: Auto merged sql/item_sum.cc: Auto merged sql/sql_union.cc: Auto merged sql/sql_yacc.yy: Auto merged
This commit is contained in:
@ -150,3 +150,91 @@ select last_insert_id();
|
||||
last_insert_id()
|
||||
0
|
||||
drop table t1;
|
||||
create table t1(a int auto_increment,b int null,primary key(a));
|
||||
SET SQL_MODE=NO_AUTO_VALUE_ON_ZERO;
|
||||
insert into t1(a,b)values(NULL,1);
|
||||
insert into t1(a,b)values(200,2);
|
||||
insert into t1(a,b)values(0,3);
|
||||
insert into t1(b)values(4);
|
||||
insert into t1(b)values(5);
|
||||
insert into t1(b)values(6);
|
||||
insert into t1(b)values(7);
|
||||
select * from t1 order by b;
|
||||
a b
|
||||
1 1
|
||||
200 2
|
||||
0 3
|
||||
201 4
|
||||
202 5
|
||||
203 6
|
||||
204 7
|
||||
delete from t1 where a=0;
|
||||
update t1 set a=0 where b=5;
|
||||
select * from t1 order by b;
|
||||
a b
|
||||
1 1
|
||||
200 2
|
||||
201 4
|
||||
0 5
|
||||
203 6
|
||||
204 7
|
||||
delete from t1 where a=0;
|
||||
update t1 set a=NULL where b=6;
|
||||
Warnings:
|
||||
Warning 1261 Data truncated, NULL supplied to NOT NULL column 'a' at row 4
|
||||
update t1 set a=300 where b=7;
|
||||
SET SQL_MODE='';
|
||||
insert into t1(a,b)values(NULL,8);
|
||||
insert into t1(a,b)values(400,9);
|
||||
insert into t1(a,b)values(0,10);
|
||||
insert into t1(b)values(11);
|
||||
insert into t1(b)values(12);
|
||||
insert into t1(b)values(13);
|
||||
insert into t1(b)values(14);
|
||||
select * from t1 order by b;
|
||||
a b
|
||||
1 1
|
||||
200 2
|
||||
201 4
|
||||
0 6
|
||||
300 7
|
||||
301 8
|
||||
400 9
|
||||
401 10
|
||||
402 11
|
||||
403 12
|
||||
404 13
|
||||
405 14
|
||||
delete from t1 where a=0;
|
||||
update t1 set a=0 where b=12;
|
||||
select * from t1 order by b;
|
||||
a b
|
||||
1 1
|
||||
200 2
|
||||
201 4
|
||||
300 7
|
||||
301 8
|
||||
400 9
|
||||
401 10
|
||||
402 11
|
||||
0 12
|
||||
404 13
|
||||
405 14
|
||||
delete from t1 where a=0;
|
||||
update t1 set a=NULL where b=13;
|
||||
Warnings:
|
||||
Warning 1261 Data truncated, NULL supplied to NOT NULL column 'a' at row 9
|
||||
update t1 set a=500 where b=14;
|
||||
select * from t1 order by b;
|
||||
a b
|
||||
1 1
|
||||
200 2
|
||||
201 4
|
||||
300 7
|
||||
301 8
|
||||
400 9
|
||||
401 10
|
||||
402 11
|
||||
0 13
|
||||
500 14
|
||||
drop table t1;
|
||||
|
7
mysql-test/r/count_distinct3.result
Normal file
7
mysql-test/r/count_distinct3.result
Normal file
@ -0,0 +1,7 @@
|
||||
DROP TABLE IF EXISTS t1, t2;
|
||||
CREATE TABLE t1 (id INTEGER, grp TINYINT, id_rev INTEGER);
|
||||
SELECT COUNT(*) FROM t1;
|
||||
COUNT(*)
|
||||
4181000
|
||||
SELECT COUNT(DISTINCT id) FROM t1 GROUP BY grp;
|
||||
DROP TABLE t1;
|
@ -7,6 +7,10 @@ CREATE TABLE t2 (
|
||||
latin1_f CHAR(32) CHARACTER SET latin1 COLLATE koi8r_general_ci NOT NULL
|
||||
);
|
||||
ERROR 42000: COLLATION 'koi8r_general_ci' is not valid for CHARACTER SET 'latin1'
|
||||
CREATE TABLE t2 (
|
||||
latin1_f CHAR(32) CHARACTER SET latin1 COLLATE some_non_existing_col NOT NULL
|
||||
);
|
||||
ERROR HY000: Unknown collation: 'some_non_existing_col'
|
||||
INSERT INTO t1 (latin1_f) VALUES (_latin1'A');
|
||||
INSERT INTO t1 (latin1_f) VALUES (_latin1'a');
|
||||
INSERT INTO t1 (latin1_f) VALUES (_latin1'AD');
|
||||
@ -482,7 +486,7 @@ y
|
||||
Z
|
||||
z
|
||||
SELECT DISTINCT latin1_f COLLATE koi8r FROM t1;
|
||||
ERROR 42000: COLLATION 'koi8r' is not valid for CHARACTER SET 'latin1'
|
||||
ERROR HY000: Unknown collation: 'koi8r'
|
||||
SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
@ -526,3 +530,9 @@ latin1 latin1_swedish_ci 3 1
|
||||
SET CHARACTER SET 'DEFAULT';
|
||||
ERROR 42000: Unknown character set: 'DEFAULT'
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1
|
||||
(s1 CHAR(5) COLLATE latin1_german1_ci,
|
||||
s2 CHAR(5) COLLATE latin1_swedish_ci);
|
||||
SELECT * FROM t1 WHERE s1 = s2;
|
||||
ERROR HY000: Illegal mix of collations (latin1_german1_ci,IMPLICIT) and (latin1_swedish_ci,IMPLICIT) for operation '='
|
||||
DROP TABLE t1;
|
||||
|
@ -264,3 +264,22 @@ select * from t1 where word like CAST(0xDF as CHAR);
|
||||
word word2
|
||||
<EFBFBD> <09>
|
||||
drop table t1;
|
||||
CREATE TABLE t1 (
|
||||
s1 CHAR(5) CHARACTER SET latin1 COLLATE latin1_german2_ci
|
||||
);
|
||||
INSERT INTO t1 VALUES ('<27>');
|
||||
INSERT INTO t1 VALUES ('ue');
|
||||
SELECT DISTINCT s1 FROM t1;
|
||||
s1
|
||||
<EFBFBD>
|
||||
SELECT s1,COUNT(*) FROM t1 GROUP BY s1;
|
||||
s1 COUNT(*)
|
||||
<EFBFBD> 2
|
||||
SELECT COUNT(DISTINCT s1) FROM t1;
|
||||
COUNT(DISTINCT s1)
|
||||
1
|
||||
SELECT FIELD('ue',s1), FIELD('<27>',s1), s1='ue', s1='<27>' FROM t1;
|
||||
FIELD('ue',s1) FIELD('<27>',s1) s1='ue' s1='<27>'
|
||||
1 1 1 1
|
||||
1 1 1 1
|
||||
DROP TABLE t1;
|
||||
|
@ -42,3 +42,17 @@ Field Type Null Key Default Extra
|
||||
SET CHARACTER SET koi8r;
|
||||
DROP TABLE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>;
|
||||
SET CHARACTER SET default;
|
||||
SET CHARACTER SET koi8r;
|
||||
CREATE DATABASE <20><><EFBFBD><EFBFBD>;
|
||||
USE <20><><EFBFBD><EFBFBD>;
|
||||
SHOW TABLES;
|
||||
Tables_in_<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
SHOW TABLES IN <20><><EFBFBD><EFBFBD>;
|
||||
Tables_in_<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
SET CHARACTER SET cp1251;
|
||||
SHOW TABLES;
|
||||
Tables_in_<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
SHOW TABLES IN <20><><EFBFBD><EFBFBD>;
|
||||
Tables_in_<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
SET CHARACTER SET koi8r;
|
||||
DROP DATABASE <20><><EFBFBD><EFBFBD>;
|
||||
|
@ -137,7 +137,7 @@ a t
|
||||
explain select count(*) from t1 as tt1, (select * from t1) as tt2;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
|
||||
2 DERIVED tt1 index NULL a 4 NULL 10000 Using index
|
||||
2 DERIVED tt1 ALL NULL NULL NULL NULL 10000
|
||||
drop table t1;
|
||||
SELECT * FROM (SELECT (SELECT * FROM (SELECT 1 as a) as a )) as b;
|
||||
(SELECT * FROM (SELECT 1 as a) as a )
|
||||
|
@ -4,771 +4,6 @@ i int(10) unsigned not null auto_increment primary key,
|
||||
a varchar(255) not null,
|
||||
FULLTEXT KEY (a)
|
||||
) TYPE=MyISAM;
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaaxxx');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaazzz');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
insert t1 (a) values ('aaayyy');
|
||||
repair table t1 quick;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair status OK
|
||||
|
@ -612,3 +612,9 @@ select Case When Count(*) < MAX_REQ Then 1 Else 0 End from t1 where t1.USR_ID =
|
||||
Case When Count(*) < MAX_REQ Then 1 Else 0 End
|
||||
1
|
||||
drop table t1;
|
||||
create table t1 (a char(10));
|
||||
insert into t1 values ('a'),('b'),('c');
|
||||
select coercibility(max(a)) from t1;
|
||||
coercibility(max(a))
|
||||
3
|
||||
drop table t1;
|
||||
|
@ -553,3 +553,8 @@ SUBSTR('abcdefg',-1,-1)
|
||||
select SUBSTR('abcdefg',1,-1) FROM DUAL;
|
||||
SUBSTR('abcdefg',1,-1)
|
||||
|
||||
create table t7 (s1 char);
|
||||
select * from t7
|
||||
where concat(s1 collate latin1_general_ci,s1 collate latin1_swedish_ci) = 'AA';
|
||||
ERROR HY000: Illegal mix of collations (latin1_general_ci,EXPLICIT) and (latin1_swedish_ci,EXPLICIT) for operation 'concat'
|
||||
drop table t7;
|
||||
|
23
mysql-test/r/grant2.result
Normal file
23
mysql-test/r/grant2.result
Normal file
@ -0,0 +1,23 @@
|
||||
delete from mysql.user where user like 'mysqltest\_%';
|
||||
delete from mysql.db where user like 'mysqltest\_%';
|
||||
flush privileges;
|
||||
grant all privileges on `my\_%`.* to mysqltest_1@localhost with grant option;
|
||||
select current_user();
|
||||
current_user()
|
||||
mysqltest_1@localhost
|
||||
grant all privileges on `my\_1`.* to mysqltest_2@localhost with grant option;
|
||||
grant all privileges on `my_%`.* to mysqltest_3@localhost with grant option;
|
||||
ERROR 42000: Access denied for user: 'mysqltest_1'@'localhost' to database 'my_%'
|
||||
show grants for mysqltest_1@localhost;
|
||||
Grants for mysqltest_1@localhost
|
||||
GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
|
||||
GRANT ALL PRIVILEGES ON `my\_%`.* TO 'mysqltest_1'@'localhost' WITH GRANT OPTION
|
||||
show grants for mysqltest_2@localhost;
|
||||
Grants for mysqltest_2@localhost
|
||||
GRANT USAGE ON *.* TO 'mysqltest_2'@'localhost'
|
||||
GRANT ALL PRIVILEGES ON `my\_1`.* TO 'mysqltest_2'@'localhost' WITH GRANT OPTION
|
||||
show grants for mysqltest_3@localhost;
|
||||
ERROR 42000: There is no such grant defined for user 'mysqltest_3' on host 'localhost'
|
||||
delete from mysql.user where user like 'mysqltest\_%';
|
||||
delete from mysql.db where user like 'mysqltest\_%';
|
||||
flush privileges;
|
@ -84,7 +84,7 @@ a b c a
|
||||
1 1 1 test.t1
|
||||
2 2 2 test.t1
|
||||
select * from t2;
|
||||
ERROR 42000: select command denied to user: 'mysqltest_2@localhost' for table 't2'
|
||||
ERROR 42000: select command denied to user: 'mysqltest_2'@'localhost' for table 't2'
|
||||
show status like "Qcache_queries_in_cache";
|
||||
Variable_name Value
|
||||
Qcache_queries_in_cache 6
|
||||
@ -98,17 +98,17 @@ select "user3";
|
||||
user3
|
||||
user3
|
||||
select * from t1;
|
||||
ERROR 42000: select command denied to user: 'mysqltest_3@localhost' for column 'b' in table 't1'
|
||||
ERROR 42000: select command denied to user: 'mysqltest_3'@'localhost' for column 'b' in table 't1'
|
||||
select a from t1;
|
||||
a
|
||||
1
|
||||
2
|
||||
select c from t1;
|
||||
ERROR 42000: SELECT command denied to user: 'mysqltest_3@localhost' for column 'c' in table 't1'
|
||||
ERROR 42000: SELECT command denied to user: 'mysqltest_3'@'localhost' for column 'c' in table 't1'
|
||||
select * from t2;
|
||||
ERROR 42000: select command denied to user: 'mysqltest_3@localhost' for table 't2'
|
||||
ERROR 42000: select command denied to user: 'mysqltest_3'@'localhost' for table 't2'
|
||||
select mysqltest.t1.c from test.t1,mysqltest.t1;
|
||||
ERROR 42000: SELECT command denied to user: 'mysqltest_3@localhost' for column 'c' in table 't1'
|
||||
ERROR 42000: SELECT command denied to user: 'mysqltest_3'@'localhost' for column 'c' in table 't1'
|
||||
show status like "Qcache_queries_in_cache";
|
||||
Variable_name Value
|
||||
Qcache_queries_in_cache 6
|
||||
|
@ -1322,10 +1322,10 @@ SELECT t2.id, t1.label FROM t2 INNER JOIN
|
||||
(SELECT t1.id_object as id_object FROM t1 WHERE t1.label LIKE '%test%') AS lbl
|
||||
ON (t2.id = lbl.id_object) INNER JOIN t1 ON (t2.id = t1.id_object);
|
||||
id label
|
||||
3382 Fournisseur Test
|
||||
102 Fournisseur Test
|
||||
1794 Fournisseur Test
|
||||
1822 Fournisseur Test
|
||||
3524 Fournisseur Test
|
||||
3382 Test
|
||||
102 Le Pekin (Test)
|
||||
1794 Test de resto
|
||||
1822 Test 3
|
||||
3524 Societe Test
|
||||
3525 Fournisseur Test
|
||||
drop table t1,t2;
|
||||
|
@ -374,22 +374,23 @@ drop database mysqltest;
|
||||
show status like "Qcache_queries_in_cache";
|
||||
Variable_name Value
|
||||
Qcache_queries_in_cache 0
|
||||
create table t1 (a char(1) not null);
|
||||
insert into t1 values("<22>");
|
||||
create table t1 (a char(1) not null collate koi8r_general_ci);
|
||||
insert into t1 values(_koi8r"<22>");
|
||||
set CHARACTER SET koi8r;
|
||||
select * from t1;
|
||||
a
|
||||
<EFBFBD>
|
||||
set CHARACTER SET cp1251_koi8;
|
||||
select * from t1;
|
||||
a
|
||||
<EFBFBD>
|
||||
<EFBFBD>
|
||||
set CHARACTER SET DEFAULT;
|
||||
show status like "Qcache_queries_in_cache";
|
||||
Variable_name Value
|
||||
Qcache_queries_in_cache 1
|
||||
Qcache_queries_in_cache 2
|
||||
show status like "Qcache_hits";
|
||||
Variable_name Value
|
||||
Qcache_hits 5
|
||||
Qcache_hits 4
|
||||
drop table t1;
|
||||
create database if not exists mysqltest;
|
||||
create table mysqltest.t1 (i int not null);
|
||||
@ -415,7 +416,7 @@ Variable_name Value
|
||||
Qcache_queries_in_cache 2
|
||||
show status like "Qcache_hits";
|
||||
Variable_name Value
|
||||
Qcache_hits 7
|
||||
Qcache_hits 6
|
||||
drop database mysqltest;
|
||||
drop table t1;
|
||||
create table t1 (i int not null);
|
||||
@ -429,7 +430,7 @@ FOUND_ROWS()
|
||||
4
|
||||
show status like "Qcache_hits";
|
||||
Variable_name Value
|
||||
Qcache_hits 7
|
||||
Qcache_hits 6
|
||||
show status like "Qcache_queries_in_cache";
|
||||
Variable_name Value
|
||||
Qcache_queries_in_cache 1
|
||||
@ -441,7 +442,7 @@ FOUND_ROWS()
|
||||
1
|
||||
show status like "Qcache_hits";
|
||||
Variable_name Value
|
||||
Qcache_hits 7
|
||||
Qcache_hits 6
|
||||
show status like "Qcache_queries_in_cache";
|
||||
Variable_name Value
|
||||
Qcache_queries_in_cache 2
|
||||
@ -454,7 +455,7 @@ FOUND_ROWS()
|
||||
4
|
||||
show status like "Qcache_hits";
|
||||
Variable_name Value
|
||||
Qcache_hits 8
|
||||
Qcache_hits 7
|
||||
show status like "Qcache_queries_in_cache";
|
||||
Variable_name Value
|
||||
Qcache_queries_in_cache 2
|
||||
@ -466,7 +467,7 @@ FOUND_ROWS()
|
||||
1
|
||||
show status like "Qcache_hits";
|
||||
Variable_name Value
|
||||
Qcache_hits 9
|
||||
Qcache_hits 8
|
||||
show status like "Qcache_queries_in_cache";
|
||||
Variable_name Value
|
||||
Qcache_queries_in_cache 2
|
||||
@ -535,7 +536,7 @@ a
|
||||
3
|
||||
show status like "Qcache_hits";
|
||||
Variable_name Value
|
||||
Qcache_hits 12
|
||||
Qcache_hits 11
|
||||
show status like "Qcache_queries_in_cache";
|
||||
Variable_name Value
|
||||
Qcache_queries_in_cache 2
|
||||
@ -552,7 +553,7 @@ a
|
||||
3
|
||||
show status like "Qcache_hits";
|
||||
Variable_name Value
|
||||
Qcache_hits 13
|
||||
Qcache_hits 12
|
||||
show status like "Qcache_queries_in_cache";
|
||||
Variable_name Value
|
||||
Qcache_queries_in_cache 2
|
||||
@ -561,6 +562,15 @@ set GLOBAL query_cache_min_res_unit=default;
|
||||
show global variables like "query_cache_min_res_unit";
|
||||
Variable_name Value
|
||||
query_cache_min_res_unit 4096
|
||||
create table t1 (a int not null);
|
||||
insert into t1 values (1);
|
||||
select "aaa" from t1;
|
||||
aaa
|
||||
aaa
|
||||
select "AAA" from t1;
|
||||
AAA
|
||||
AAA
|
||||
drop table t1;
|
||||
create table t1 (a int);
|
||||
set GLOBAL query_cache_size=1000;
|
||||
show global variables like "query_cache_size";
|
||||
|
@ -4,20 +4,20 @@ File Position Binlog_do_db Binlog_ignore_db
|
||||
master-bin.000001 79
|
||||
reset slave;
|
||||
show slave status;
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Replicate_do_table Replicate_ignore_table Replicate_wild_do_table Replicate_wild_ignore_table Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
change master to master_host='127.0.0.1';
|
||||
show slave status;
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
127.0.0.1 test MASTER_PORT 7 4 slave-relay-bin.000001 4 No No 0 0 0 4
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Replicate_do_table Replicate_ignore_table Replicate_wild_do_table Replicate_wild_ignore_table Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
127.0.0.1 test MASTER_PORT 7 4 slave-relay-bin.000001 4 No No 0 0 0 4
|
||||
change master to master_host='127.0.0.1',master_user='root',
|
||||
master_password='',master_port=MASTER_PORT;
|
||||
show slave status;
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
127.0.0.1 root MASTER_PORT 7 4 slave-relay-bin.000001 4 No No 0 0 0 4
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Replicate_do_table Replicate_ignore_table Replicate_wild_do_table Replicate_wild_ignore_table Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
127.0.0.1 root MASTER_PORT 7 4 slave-relay-bin.000001 4 No No 0 0 0 4
|
||||
start slave;
|
||||
show slave status;
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
127.0.0.1 root MASTER_PORT 7 master-bin.000001 79 slave-relay-bin.000001 123 master-bin.000001 Yes Yes 0 0 79 123
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Replicate_do_table Replicate_ignore_table Replicate_wild_do_table Replicate_wild_ignore_table Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
127.0.0.1 root MASTER_PORT 7 master-bin.000001 79 slave-relay-bin.000001 123 master-bin.000001 Yes Yes 0 0 79 123
|
||||
drop table if exists t1;
|
||||
create table t1 (n int);
|
||||
insert into t1 values (10),(45),(90);
|
||||
|
@ -5,7 +5,7 @@ reset slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
start slave;
|
||||
show slave status;
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Replicate_do_table Replicate_ignore_table Replicate_wild_do_table Replicate_wild_ignore_table Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
load table t1 from master;
|
||||
ERROR 08S01: Error connecting to master: Master is not configured
|
||||
load table t1 from master;
|
||||
|
@ -13,5 +13,5 @@ master_password='',master_port=SLAVE_PORT;
|
||||
start slave;
|
||||
flush logs;
|
||||
show slave status;
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
127.0.0.1 root SLAVE_PORT 60 slave-bin.000001 79 relay-log.000001 122 slave-bin.000001 Yes Yes 0 0 79 122
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Replicate_do_table Replicate_ignore_table Replicate_wild_do_table Replicate_wild_ignore_table Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
127.0.0.1 root SLAVE_PORT 60 slave-bin.000001 79 relay-log.000001 122 slave-bin.000001 Yes Yes 0 0 79 122
|
||||
|
@ -24,7 +24,3 @@ drop table t2;
|
||||
drop table t3;
|
||||
create table t1(a int, b int, unique(b));
|
||||
insert into t1 values(1,10);
|
||||
load data infile '../../std_data/rpl_loaddata.dat' into table t1;
|
||||
show status like 'slave_running';
|
||||
Variable_name Value
|
||||
Slave_running OFF
|
||||
|
@ -92,7 +92,7 @@ slave-bin.000002 4 Query 1 110 use `test`; create table t1 (n int)
|
||||
slave-bin.000002 62 Query 1 168 use `test`; insert into t1 values (1)
|
||||
slave-bin.000002 122 Query 1 228 use `test`; drop table t1
|
||||
show slave status;
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
127.0.0.1 root MASTER_PORT 1 master-bin.000002 276 slave-relay-bin.000002 1531 master-bin.000002 Yes Yes 0 0 276 1535
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Replicate_do_table Replicate_ignore_table Replicate_wild_do_table Replicate_wild_ignore_table Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
127.0.0.1 root MASTER_PORT 1 master-bin.000002 276 slave-relay-bin.000002 1531 master-bin.000002 Yes Yes 0 0 276 1535
|
||||
show binlog events in 'slave-bin.000005' from 4;
|
||||
ERROR HY000: Error when executing command SHOW BINLOG EVENTS: Could not find target log
|
||||
|
@ -8,26 +8,26 @@ show master status;
|
||||
File Position Binlog_do_db Binlog_ignore_db
|
||||
master-bin.000001 79
|
||||
show slave status;
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
127.0.0.1 root MASTER_PORT 1 master-bin.000001 79 slave-relay-bin.000002 123 master-bin.000001 Yes Yes 0 0 79 127
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Replicate_do_table Replicate_ignore_table Replicate_wild_do_table Replicate_wild_ignore_table Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
127.0.0.1 root MASTER_PORT 1 master-bin.000001 79 slave-relay-bin.000002 123 master-bin.000001 Yes Yes 0 0 79 127
|
||||
stop slave;
|
||||
change master to master_log_pos=73;
|
||||
start slave;
|
||||
stop slave;
|
||||
change master to master_log_pos=73;
|
||||
show slave status;
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
127.0.0.1 root MASTER_PORT 1 master-bin.000001 73 slave-relay-bin.000001 4 master-bin.000001 No No 0 0 73 4
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Replicate_do_table Replicate_ignore_table Replicate_wild_do_table Replicate_wild_ignore_table Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
127.0.0.1 root MASTER_PORT 1 master-bin.000001 73 slave-relay-bin.000001 4 master-bin.000001 No No 0 0 73 4
|
||||
start slave;
|
||||
show slave status;
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
127.0.0.1 root MASTER_PORT 1 master-bin.000001 73 slave-relay-bin.000001 4 master-bin.000001 No Yes 0 0 73 4
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Replicate_do_table Replicate_ignore_table Replicate_wild_do_table Replicate_wild_ignore_table Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
127.0.0.1 root MASTER_PORT 1 master-bin.000001 73 slave-relay-bin.000001 4 master-bin.000001 No Yes 0 0 73 4
|
||||
stop slave;
|
||||
change master to master_log_pos=173;
|
||||
start slave;
|
||||
show slave status;
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
127.0.0.1 root MASTER_PORT 1 master-bin.000001 173 slave-relay-bin.000001 4 master-bin.000001 No Yes 0 0 173 4
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Replicate_do_table Replicate_ignore_table Replicate_wild_do_table Replicate_wild_ignore_table Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
127.0.0.1 root MASTER_PORT 1 master-bin.000001 173 slave-relay-bin.000001 4 master-bin.000001 No Yes 0 0 173 4
|
||||
show master status;
|
||||
File Position Binlog_do_db Binlog_ignore_db
|
||||
master-bin.000001 79
|
||||
|
@ -5,7 +5,7 @@ reset slave;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
start slave;
|
||||
SHOW SLAVE STATUS;
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Replicate_do_table Replicate_ignore_table Replicate_wild_do_table Replicate_wild_ignore_table Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
SHOW SLAVE HOSTS;
|
||||
Server_id Host Port Rpl_recovery_rank Master_id
|
||||
2 127.0.0.1 SLAVE_PORT 2 1
|
||||
|
@ -26,3 +26,6 @@ n
|
||||
select * from t11;
|
||||
ERROR 42S02: Table 'test.t11' doesn't exist
|
||||
drop table if exists t1,t2,t11;
|
||||
show slave status;
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Replicate_do_table Replicate_ignore_table Replicate_wild_do_table Replicate_wild_ignore_table Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
127.0.0.1 root MASTER_PORT 1 master-bin.000001 1281 slave-relay-bin.000002 1325 master-bin.000001 Yes Yes test.t1 0 0 1281 1329
|
||||
|
@ -15,8 +15,8 @@ insert into temp_table values ("testing temporary tables");
|
||||
create table t1 (s text);
|
||||
insert into t1 values('Could not break slave'),('Tried hard');
|
||||
show slave status;
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
127.0.0.1 root MASTER_PORT 60 master-bin.000001 417 slave-relay-bin.000001 461 master-bin.000001 Yes Yes 0 0 417 461
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Replicate_do_table Replicate_ignore_table Replicate_wild_do_table Replicate_wild_ignore_table Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
127.0.0.1 root MASTER_PORT 60 master-bin.000001 417 slave-relay-bin.000001 461 master-bin.000001 Yes Yes 0 0 417 461
|
||||
select * from t1;
|
||||
s
|
||||
Could not break slave
|
||||
@ -56,8 +56,8 @@ Log_name
|
||||
master-bin.000003
|
||||
insert into t2 values (65);
|
||||
show slave status;
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
127.0.0.1 root MASTER_PORT 60 master-bin.000003 290 slave-relay-bin.000001 1088 master-bin.000003 Yes Yes 0 0 290 1088
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Replicate_do_table Replicate_ignore_table Replicate_wild_do_table Replicate_wild_ignore_table Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
127.0.0.1 root MASTER_PORT 60 master-bin.000003 290 slave-relay-bin.000001 1088 master-bin.000003 Yes Yes 0 0 290 1088
|
||||
select * from t2;
|
||||
m
|
||||
34
|
||||
@ -82,8 +82,8 @@ select * from t4;
|
||||
a
|
||||
testing temporary tables part 2
|
||||
show slave status;
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
127.0.0.1 root MASTER_PORT 60 master-bin.000006 838 slave-relay-bin.000001 8067 master-bin.000006 Yes Yes 0 0 838 8067
|
||||
Master_Host Master_User Master_Port Connect_retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_do_db Replicate_ignore_db Replicate_do_table Replicate_ignore_table Replicate_wild_do_table Replicate_wild_ignore_table Last_errno Last_error Skip_counter Exec_master_log_pos Relay_log_space
|
||||
127.0.0.1 root MASTER_PORT 60 master-bin.000006 838 slave-relay-bin.000001 8067 master-bin.000006 Yes Yes 0 0 838 8067
|
||||
lock tables t3 read;
|
||||
select count(*) from t3 where n >= 4;
|
||||
count(*)
|
||||
|
@ -832,7 +832,7 @@ a t1.a in (select t2.a from t2)
|
||||
explain SELECT t1.a, t1.a in (select t2.a from t2) FROM t1;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 PRIMARY t1 index NULL PRIMARY 4 NULL 4 Using index
|
||||
2 DEPENDENT SUBQUERY t2 index_in a a 5 const 2 Using where; Using index
|
||||
2 DEPENDENT SUBQUERY t2 index_in a a 5 func 2 Using where; Using index
|
||||
CREATE TABLE t3 (a int(11) default '0');
|
||||
INSERT INTO t3 VALUES (1),(2),(3);
|
||||
SELECT t1.a, t1.a in (select t2.a from t2,t3 where t3.a=t2.a) FROM t1;
|
||||
@ -844,7 +844,7 @@ a t1.a in (select t2.a from t2,t3 where t3.a=t2.a)
|
||||
explain SELECT t1.a, t1.a in (select t2.a from t2,t3 where t3.a=t2.a) FROM t1;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 PRIMARY t1 index NULL PRIMARY 4 NULL 4 Using index
|
||||
2 DEPENDENT SUBQUERY t2 ref_or_null a a 5 const 2 Using where; Using index
|
||||
2 DEPENDENT SUBQUERY t2 ref_or_null a a 5 func 2 Using where; Using index
|
||||
2 DEPENDENT SUBQUERY t3 ALL NULL NULL NULL NULL 3 Using where
|
||||
drop table t1,t2,t3;
|
||||
create table t1 (a float);
|
||||
@ -1276,7 +1276,7 @@ a
|
||||
explain select * from t2 where t2.a in (select a from t1);
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 PRIMARY t2 index NULL a 5 NULL 4 Using where; Using index
|
||||
2 DEPENDENT SUBQUERY t1 index_in a a 5 func 100 Using index
|
||||
2 DEPENDENT SUBQUERY t1 index_in a a 5 func 1001 Using index
|
||||
select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
|
||||
a
|
||||
2
|
||||
@ -1284,7 +1284,7 @@ a
|
||||
explain select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 PRIMARY t2 index NULL a 5 NULL 4 Using where; Using index
|
||||
2 DEPENDENT SUBQUERY t1 index_in a a 5 func 100 Using index; Using where
|
||||
2 DEPENDENT SUBQUERY t1 index_in a a 5 func 1001 Using index; Using where
|
||||
select * from t2 where t2.a in (select t1.a from t1,t3 where t1.b=t3.a);
|
||||
a
|
||||
2
|
||||
@ -1293,7 +1293,7 @@ explain select * from t2 where t2.a in (select t1.a from t1,t3 where t1.b=t3.a);
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 PRIMARY t2 index NULL a 5 NULL 4 Using where; Using index
|
||||
2 DEPENDENT SUBQUERY t3 index a a 5 NULL 3 Using index
|
||||
2 DEPENDENT SUBQUERY t1 ref a a 10 func,test.t3.a 100 Using where; Using index
|
||||
2 DEPENDENT SUBQUERY t1 ref a a 10 func,test.t3.a 1000 Using where; Using index
|
||||
insert into t1 values (3,31);
|
||||
select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
|
||||
a
|
||||
@ -1307,7 +1307,7 @@ a
|
||||
explain select * from t2 where t2.a in (select a from t1 where t1.b <> 30);
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 PRIMARY t2 index NULL a 5 NULL 4 Using where; Using index
|
||||
2 DEPENDENT SUBQUERY t1 index_in a a 5 func 100 Using index; Using where
|
||||
2 DEPENDENT SUBQUERY t1 index_in a a 5 func 1001 Using index; Using where
|
||||
drop table t1, t2, t3;
|
||||
create table t1 (a int, b int);
|
||||
create table t2 (a int, b int);
|
||||
@ -1321,6 +1321,20 @@ a (select count(distinct t1.b) as sum from t1,t2 where t1.a=t2.a and t2.b > 0 an
|
||||
2 2
|
||||
1 2
|
||||
drop table t1,t2,t3;
|
||||
create table t1 (s1 int);
|
||||
create table t2 (s1 int);
|
||||
insert into t1 values (1);
|
||||
insert into t2 values (1);
|
||||
select * from t1 where exists (select s1 from t2 having max(t2.s1)=t1.s1);
|
||||
s1
|
||||
drop table t1,t2;
|
||||
create table t1 (s1 int);
|
||||
create table t2 (s1 int);
|
||||
insert into t1 values (1);
|
||||
insert into t2 values (1);
|
||||
update t1 set s1 = s1 + 1 where 1 = (select x.s1 as A from t2 WHERE t2.s1 > t1.s1 order by A);
|
||||
ERROR 42S02: Unknown table 'x' in field list
|
||||
DROP TABLE t1, t2;
|
||||
create table t2 (a int, b int);
|
||||
create table t3 (a int);
|
||||
insert into t3 values (6),(7),(3);
|
||||
|
@ -328,3 +328,16 @@ id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 PRIMARY t1 const PRIMARY PRIMARY 4 const 1
|
||||
2 UNION t1 ref b b 5 const 1 Using where
|
||||
drop table t1,t2;
|
||||
create table t1 ( id int not null auto_increment, primary key (id) ,user_name text );
|
||||
create table t2 ( id int not null auto_increment, primary key (id) ,group_name text );
|
||||
create table t3 ( id int not null auto_increment, primary key (id) ,user_id int ,index user_idx (user_id) ,foreign key (user_id) references users(id) ,group_id int ,index group_idx (group_id) ,foreign key (group_id) references groups(id) );
|
||||
insert into t1 (user_name) values ('Tester');
|
||||
insert into t2 (group_name) values ('Group A');
|
||||
insert into t2 (group_name) values ('Group B');
|
||||
insert into t3 (user_id, group_id) values (1,1);
|
||||
select 1 'is_in_group', a.user_name, c.group_name, b.id from t1 a, t3 b, t2 c where a.id = b.user_id and b.group_id = c.id UNION select 0 'is_in_group', a.user_name, c.group_name, null from t1 a, t2 c;
|
||||
is_in_group user_name group_name id
|
||||
1 Tester Group A 1
|
||||
0 Tester Group A NULL
|
||||
0 Tester Group B NULL
|
||||
drop table t1, t2, t3;
|
||||
|
@ -184,6 +184,8 @@ set GLOBAL table_type=DEFAULT;
|
||||
ERROR 42000: Variable 'table_type' doesn't have a default value
|
||||
set character_set_client=UNKNOWN_CHARACTER_SET;
|
||||
ERROR 42000: Unknown character set: 'UNKNOWN_CHARACTER_SET'
|
||||
set collation_connection=UNKNOWN_COLLATION;
|
||||
ERROR HY000: Unknown collation: 'UNKNOWN_COLLATION'
|
||||
set global autocommit=1;
|
||||
ERROR HY000: Variable 'autocommit' is a LOCAL variable and can't be used with SET GLOBAL
|
||||
select @@global.timestamp;
|
||||
|
@ -106,3 +106,36 @@ select last_insert_id();
|
||||
|
||||
drop table t1;
|
||||
|
||||
create table t1(a int auto_increment,b int null,primary key(a));
|
||||
SET SQL_MODE=NO_AUTO_VALUE_ON_ZERO;
|
||||
insert into t1(a,b)values(NULL,1);
|
||||
insert into t1(a,b)values(200,2);
|
||||
insert into t1(a,b)values(0,3);
|
||||
insert into t1(b)values(4);
|
||||
insert into t1(b)values(5);
|
||||
insert into t1(b)values(6);
|
||||
insert into t1(b)values(7);
|
||||
select * from t1 order by b;
|
||||
delete from t1 where a=0;
|
||||
update t1 set a=0 where b=5;
|
||||
select * from t1 order by b;
|
||||
delete from t1 where a=0;
|
||||
update t1 set a=NULL where b=6;
|
||||
update t1 set a=300 where b=7;
|
||||
SET SQL_MODE='';
|
||||
insert into t1(a,b)values(NULL,8);
|
||||
insert into t1(a,b)values(400,9);
|
||||
insert into t1(a,b)values(0,10);
|
||||
insert into t1(b)values(11);
|
||||
insert into t1(b)values(12);
|
||||
insert into t1(b)values(13);
|
||||
insert into t1(b)values(14);
|
||||
select * from t1 order by b;
|
||||
delete from t1 where a=0;
|
||||
update t1 set a=0 where b=12;
|
||||
select * from t1 order by b;
|
||||
delete from t1 where a=0;
|
||||
update t1 set a=NULL where b=13;
|
||||
update t1 set a=500 where b=14;
|
||||
select * from t1 order by b;
|
||||
drop table t1;
|
||||
|
55
mysql-test/t/count_distinct3.test
Normal file
55
mysql-test/t/count_distinct3.test
Normal file
@ -0,0 +1,55 @@
|
||||
#
|
||||
# this is a test for error 1032 in count(distinct) + group by, introduced in
|
||||
# mysql-4.1
|
||||
#
|
||||
|
||||
--disable_warnings
|
||||
DROP TABLE IF EXISTS t1, t2;
|
||||
--enable_warnings
|
||||
|
||||
CREATE TABLE t1 (id INTEGER, grp TINYINT, id_rev INTEGER);
|
||||
|
||||
--disable_query_log
|
||||
SET @rnd_max= 2147483647;
|
||||
let $1 = 1000;
|
||||
while ($1)
|
||||
{
|
||||
SET @rnd= RAND();
|
||||
SET @id = CAST(@rnd * @rnd_max AS UNSIGNED);
|
||||
SET @id_rev= @rnd_max - @id;
|
||||
SET @grp= CAST(128.0 * @rnd AS UNSIGNED);
|
||||
INSERT INTO t1 (id, grp, id_rev) VALUES (@id, @grp, @id_rev);
|
||||
dec $1;
|
||||
}
|
||||
CREATE TABLE t2 SELECT * FROM t1;
|
||||
INSERT INTO t1 (id, grp, id_rev) SELECT id, grp, id_rev FROM t2;
|
||||
INSERT INTO t2 (id, grp, id_rev) SELECT id, grp, id_rev FROM t1;
|
||||
INSERT INTO t1 (id, grp, id_rev) SELECT id, grp, id_rev FROM t2;
|
||||
INSERT INTO t2 (id, grp, id_rev) SELECT id, grp, id_rev FROM t1;
|
||||
INSERT INTO t1 (id, grp, id_rev) SELECT id, grp, id_rev FROM t2;
|
||||
INSERT INTO t2 (id, grp, id_rev) SELECT id, grp, id_rev FROM t1;
|
||||
INSERT INTO t1 (id, grp, id_rev) SELECT id, grp, id_rev FROM t2;
|
||||
INSERT INTO t2 (id, grp, id_rev) SELECT id, grp, id_rev FROM t1;
|
||||
INSERT INTO t1 (id, grp, id_rev) SELECT id, grp, id_rev FROM t2;
|
||||
INSERT INTO t2 (id, grp, id_rev) SELECT id, grp, id_rev FROM t1;
|
||||
INSERT INTO t1 (id, grp, id_rev) SELECT id, grp, id_rev FROM t2;
|
||||
INSERT INTO t2 (id, grp, id_rev) SELECT id, grp, id_rev FROM t1;
|
||||
INSERT INTO t1 (id, grp, id_rev) SELECT id, grp, id_rev FROM t2;
|
||||
INSERT INTO t2 (id, grp, id_rev) SELECT id, grp, id_rev FROM t1;
|
||||
INSERT INTO t1 (id, grp, id_rev) SELECT id, grp, id_rev FROM t2;
|
||||
INSERT INTO t2 (id, grp, id_rev) SELECT id, grp, id_rev FROM t1;
|
||||
INSERT INTO t1 (id, grp, id_rev) SELECT id, grp, id_rev FROM t2;
|
||||
INSERT INTO t2 (id, grp, id_rev) SELECT id, grp, id_rev FROM t1;
|
||||
DROP TABLE t2;
|
||||
--enable_query_log
|
||||
|
||||
SELECT COUNT(*) FROM t1;
|
||||
|
||||
# As t1 contains random numbers, results are different from test to test.
|
||||
# That's okay, because we test only that select doesn't yield an
|
||||
# error. Note, that --disable_result_log doesn't suppress error output.
|
||||
|
||||
--disable_result_log
|
||||
SELECT COUNT(DISTINCT id) FROM t1 GROUP BY grp;
|
||||
--enable_result_log
|
||||
DROP TABLE t1;
|
@ -12,6 +12,11 @@ CREATE TABLE t2 (
|
||||
latin1_f CHAR(32) CHARACTER SET latin1 COLLATE koi8r_general_ci NOT NULL
|
||||
);
|
||||
|
||||
--error 1271
|
||||
CREATE TABLE t2 (
|
||||
latin1_f CHAR(32) CHARACTER SET latin1 COLLATE some_non_existing_col NOT NULL
|
||||
);
|
||||
|
||||
|
||||
INSERT INTO t1 (latin1_f) VALUES (_latin1'A');
|
||||
INSERT INTO t1 (latin1_f) VALUES (_latin1'a');
|
||||
@ -93,7 +98,7 @@ SELECT DISTINCT latin1_f COLLATE latin1_swedish_ci FROM t1;
|
||||
SELECT DISTINCT latin1_f COLLATE latin1_german2_ci FROM t1;
|
||||
SELECT DISTINCT latin1_f COLLATE latin1_general_ci FROM t1;
|
||||
SELECT DISTINCT latin1_f COLLATE latin1_bin FROM t1;
|
||||
--error 1251
|
||||
--error 1271
|
||||
SELECT DISTINCT latin1_f COLLATE koi8r FROM t1;
|
||||
|
||||
|
||||
@ -143,3 +148,11 @@ SELECT charset('a'),collation('a'),coercibility('a'),'a'='A';
|
||||
SET CHARACTER SET 'DEFAULT';
|
||||
|
||||
DROP TABLE t1;
|
||||
|
||||
CREATE TABLE t1
|
||||
(s1 CHAR(5) COLLATE latin1_german1_ci,
|
||||
s2 CHAR(5) COLLATE latin1_swedish_ci);
|
||||
--error 1265
|
||||
SELECT * FROM t1 WHERE s1 = s2;
|
||||
DROP TABLE t1;
|
||||
|
@ -73,3 +73,14 @@ select * from t1 where word like 'AE';
|
||||
select * from t1 where word like binary 0xDF;
|
||||
select * from t1 where word like CAST(0xDF as CHAR);
|
||||
drop table t1;
|
||||
|
||||
CREATE TABLE t1 (
|
||||
s1 CHAR(5) CHARACTER SET latin1 COLLATE latin1_german2_ci
|
||||
);
|
||||
INSERT INTO t1 VALUES ('<27>');
|
||||
INSERT INTO t1 VALUES ('ue');
|
||||
SELECT DISTINCT s1 FROM t1;
|
||||
SELECT s1,COUNT(*) FROM t1 GROUP BY s1;
|
||||
SELECT COUNT(DISTINCT s1) FROM t1;
|
||||
SELECT FIELD('ue',s1), FIELD('<27>',s1), s1='ue', s1='<27>' FROM t1;
|
||||
DROP TABLE t1;
|
||||
|
@ -27,3 +27,14 @@ SHOW FIELDS FROM таблица;
|
||||
SET CHARACTER SET koi8r;
|
||||
DROP TABLE <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>;
|
||||
SET CHARACTER SET default;
|
||||
|
||||
SET CHARACTER SET koi8r;
|
||||
CREATE DATABASE <20><><EFBFBD><EFBFBD>;
|
||||
USE <20><><EFBFBD><EFBFBD>;
|
||||
SHOW TABLES;
|
||||
SHOW TABLES IN <20><><EFBFBD><EFBFBD>;
|
||||
SET CHARACTER SET cp1251;
|
||||
SHOW TABLES;
|
||||
SHOW TABLES IN <20><><EFBFBD><EFBFBD>;
|
||||
SET CHARACTER SET koi8r;
|
||||
DROP DATABASE <20><><EFBFBD><EFBFBD>;
|
||||
|
@ -17,6 +17,7 @@ CREATE TABLE t1 (
|
||||
) TYPE=MyISAM;
|
||||
|
||||
# two-level entry, second-level tree with depth 2
|
||||
--disable_query_log
|
||||
let $1=260;
|
||||
while ($1)
|
||||
{
|
||||
@ -39,6 +40,7 @@ while ($1)
|
||||
eval insert t1 (a) values ('aaayyy');
|
||||
dec $1;
|
||||
}
|
||||
--enable_query_log
|
||||
|
||||
# converting to two-level
|
||||
repair table t1 quick;
|
||||
|
@ -355,3 +355,8 @@ insert into t1 values (1, 3);
|
||||
select count(*) + MAX_REQ - MAX_REQ + MAX_REQ - MAX_REQ + MAX_REQ - MAX_REQ + MAX_REQ - MAX_REQ + MAX_REQ - MAX_REQ from t1 group by MAX_REQ;
|
||||
select Case When Count(*) < MAX_REQ Then 1 Else 0 End from t1 where t1.USR_ID = 1 group by MAX_REQ;
|
||||
drop table t1;
|
||||
|
||||
create table t1 (a char(10));
|
||||
insert into t1 values ('a'),('b'),('c');
|
||||
select coercibility(max(a)) from t1;
|
||||
drop table t1;
|
||||
|
@ -305,3 +305,13 @@ select SUBSTR('abcdefg',-1,5) FROM DUAL;
|
||||
select SUBSTR('abcdefg',0,0) FROM DUAL;
|
||||
select SUBSTR('abcdefg',-1,-1) FROM DUAL;
|
||||
select SUBSTR('abcdefg',1,-1) FROM DUAL;
|
||||
|
||||
#
|
||||
# Test that fix_fields doesn't follow to upper level (to comparison)
|
||||
# when an error on a lower level (in concat) has accured:
|
||||
#
|
||||
create table t7 (s1 char);
|
||||
--error 1265
|
||||
select * from t7
|
||||
where concat(s1 collate latin1_general_ci,s1 collate latin1_swedish_ci) = 'AA';
|
||||
drop table t7;
|
||||
|
30
mysql-test/t/grant2.test
Normal file
30
mysql-test/t/grant2.test
Normal file
@ -0,0 +1,30 @@
|
||||
#
|
||||
# GRANT tests that require several connections
|
||||
# (usually it's GRANT, reconnect as another user, try something)
|
||||
#
|
||||
|
||||
|
||||
#
|
||||
# wild_compare fun
|
||||
#
|
||||
|
||||
delete from mysql.user where user like 'mysqltest\_%';
|
||||
delete from mysql.db where user like 'mysqltest\_%';
|
||||
flush privileges;
|
||||
grant all privileges on `my\_%`.* to mysqltest_1@localhost with grant option;
|
||||
connect (user1,localhost,mysqltest_1,,);
|
||||
connection user1;
|
||||
select current_user();
|
||||
grant all privileges on `my\_1`.* to mysqltest_2@localhost with grant option;
|
||||
--error 1044
|
||||
grant all privileges on `my_%`.* to mysqltest_3@localhost with grant option;
|
||||
disconnect user1;
|
||||
connection default;
|
||||
show grants for mysqltest_1@localhost;
|
||||
show grants for mysqltest_2@localhost;
|
||||
--error 1141
|
||||
show grants for mysqltest_3@localhost;
|
||||
delete from mysql.user where user like 'mysqltest\_%';
|
||||
delete from mysql.db where user like 'mysqltest\_%';
|
||||
flush privileges;
|
||||
|
@ -260,8 +260,9 @@ show status like "Qcache_queries_in_cache";
|
||||
#
|
||||
# Charset convertion (cp1251_koi8 always present)
|
||||
#
|
||||
create table t1 (a char(1) not null);
|
||||
insert into t1 values("<22>");
|
||||
create table t1 (a char(1) not null collate koi8r_general_ci);
|
||||
insert into t1 values(_koi8r"<22>");
|
||||
set CHARACTER SET koi8r;
|
||||
select * from t1;
|
||||
set CHARACTER SET cp1251_koi8;
|
||||
select * from t1;
|
||||
@ -368,6 +369,15 @@ drop table t2;
|
||||
set GLOBAL query_cache_min_res_unit=default;
|
||||
show global variables like "query_cache_min_res_unit";
|
||||
|
||||
#
|
||||
# Case sensitive test
|
||||
#
|
||||
create table t1 (a int not null);
|
||||
insert into t1 values (1);
|
||||
select "aaa" from t1;
|
||||
select "AAA" from t1;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# Test of query cache resizing
|
||||
#
|
||||
|
1
mysql-test/t/rpl_insert_id-slave.opt
Normal file
1
mysql-test/t/rpl_insert_id-slave.opt
Normal file
@ -0,0 +1 @@
|
||||
--innodb
|
@ -37,14 +37,21 @@ connection slave;
|
||||
sync_with_master;
|
||||
insert into t1 values(1,10);
|
||||
|
||||
connection master;
|
||||
load data infile '../../std_data/rpl_loaddata.dat' into table t1;
|
||||
|
||||
save_master_pos;
|
||||
connection slave;
|
||||
# don't sync_with_master because the slave SQL thread should be stopped because
|
||||
# of the error so MASTER_POS_WAIT() will not return; just sleep and hope the
|
||||
# slave SQL thread will have had time to stop.
|
||||
# NOTE UNTIL MERGE 4.0 INTO 4.1
|
||||
# Below we generate an error, but this error shows up in SHOW SLAVE STATUS
|
||||
# in the next test. In 4.0 this is fixed (RESET SLAVE resets the error), but it
|
||||
# has not been merged into 4.1 yet. So for the moment, I comment all lines
|
||||
# below, to not generate the error, so that the test suite passes.
|
||||
# When you do the 4.0 -> 4.1 merge, please remove this note and re-enable the
|
||||
# error generation, by deleting the '#' characters below, and update the result.
|
||||
# The changeset to merge in 4.1 is
|
||||
# ChangeSet@1.1455.34.1, 2003-06-10 23:29:49+02:00, guilhem@mysql.com
|
||||
|
||||
sleep 1;
|
||||
show status like 'slave_running';
|
||||
#connection master;
|
||||
#load data infile '../../std_data/rpl_loaddata.dat' into table t1;
|
||||
|
||||
#save_master_pos;
|
||||
#connection slave;
|
||||
# The SQL slave thread should be stopped now.
|
||||
#wait_for_slave_to_stop;
|
||||
|
@ -31,3 +31,7 @@ drop table if exists t1,t2,t11;
|
||||
save_master_pos;
|
||||
connection slave;
|
||||
sync_with_master;
|
||||
# show slave status, just to see of it prints replicate-do-table
|
||||
--replace_result $MASTER_MYPORT MASTER_PORT
|
||||
show slave status;
|
||||
|
||||
|
@ -868,6 +868,27 @@ insert into t3 values (3,3), (2,2), (1,1);
|
||||
select a,(select count(distinct t1.b) as sum from t1,t2 where t1.a=t2.a and t2.b > 0 and t1.a <= t3.b group by t1.a order by sum limit 1) from t3;
|
||||
drop table t1,t2,t3;
|
||||
|
||||
#
|
||||
# aggregate functions in HAVING test
|
||||
#
|
||||
create table t1 (s1 int);
|
||||
create table t2 (s1 int);
|
||||
insert into t1 values (1);
|
||||
insert into t2 values (1);
|
||||
select * from t1 where exists (select s1 from t2 having max(t2.s1)=t1.s1);
|
||||
drop table t1,t2;
|
||||
#
|
||||
# update subquery with wrong field (to force name resolving
|
||||
# in UPDATE name space)
|
||||
#
|
||||
create table t1 (s1 int);
|
||||
create table t2 (s1 int);
|
||||
insert into t1 values (1);
|
||||
insert into t2 values (1);
|
||||
-- error 1109
|
||||
update t1 set s1 = s1 + 1 where 1 = (select x.s1 as A from t2 WHERE t2.s1 > t1.s1 order by A);
|
||||
DROP TABLE t1, t2;
|
||||
|
||||
#
|
||||
# correct ALL optimisation
|
||||
#
|
||||
|
@ -209,3 +209,12 @@ explain (select * from t1 where a=1) union (select * from t2 where a=1);
|
||||
explain (select * from t1 where a=1 and b=10) union (select t1.a,t2.a from t1,t2 where t1.a=t2.a);
|
||||
explain (select * from t1 where a=1) union (select * from t1 where b=1);
|
||||
drop table t1,t2;
|
||||
create table t1 ( id int not null auto_increment, primary key (id) ,user_name text );
|
||||
create table t2 ( id int not null auto_increment, primary key (id) ,group_name text );
|
||||
create table t3 ( id int not null auto_increment, primary key (id) ,user_id int ,index user_idx (user_id) ,foreign key (user_id) references users(id) ,group_id int ,index group_idx (group_id) ,foreign key (group_id) references groups(id) );
|
||||
insert into t1 (user_name) values ('Tester');
|
||||
insert into t2 (group_name) values ('Group A');
|
||||
insert into t2 (group_name) values ('Group B');
|
||||
insert into t3 (user_id, group_id) values (1,1);
|
||||
select 1 'is_in_group', a.user_name, c.group_name, b.id from t1 a, t3 b, t2 c where a.id = b.user_id and b.group_id = c.id UNION select 0 'is_in_group', a.user_name, c.group_name, null from t1 a, t2 c;
|
||||
drop table t1, t2, t3;
|
||||
|
@ -120,6 +120,8 @@ set SESSION query_cache_size=10000;
|
||||
set GLOBAL table_type=DEFAULT;
|
||||
--error 1115
|
||||
set character_set_client=UNKNOWN_CHARACTER_SET;
|
||||
--error 1271
|
||||
set collation_connection=UNKNOWN_COLLATION;
|
||||
--error 1228
|
||||
set global autocommit=1;
|
||||
--error 1228
|
||||
|
Reference in New Issue
Block a user