mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 04:22:27 +01:00
31ba88c0c1
Added bug fix from 3.23 for AIX 4.3.3 and gcc 3.x Small change in EXCHANGE output Propagate open-files-limit from mysqld_safe -> mysqld Fixed speed bug in GROUP BY Added quotes around database name in CREATE DATABASE db_name (for binary log) BitKeeper/etc/ignore: added stamp-h1 Docs/manual.texi: Added 4.1 manual section Updated changelog client/mysqltest.c: Added --skip-safemalloc include/my_global.h: Added bug fix from 3.23 for AIX 4.3.3 and gcc 3.x mysql-test/mysql-test-run.sh: Start mysqltest with --skip-safemalloc (To get it faster) mysql-test/r/bdb.result: Update for new EXPLAIN output mysql-test/r/compare.result: Update for new EXPLAIN output mysql-test/r/create.result: Update for new EXPLAIN output mysql-test/r/distinct.result: Update for new EXPLAIN output mysql-test/r/explain.result: Update for new EXPLAIN output mysql-test/r/group_by.result: Update for new EXPLAIN output mysql-test/r/heap.result: Update for new EXPLAIN output mysql-test/r/innodb.result: Update for new EXPLAIN output mysql-test/r/join_outer.result: Update for new EXPLAIN output mysql-test/r/key_diff.result: Update for new EXPLAIN output mysql-test/r/merge.result: Update for new EXPLAIN output mysql-test/r/null_key.result: Update for new EXPLAIN output mysql-test/r/order_by.result: Update for new EXPLAIN output mysql-test/r/select.result: Update for new EXPLAIN output mysql-test/r/temp_table.result: Fixed speed bug in GROUP BY mysql-test/r/type_datetime.result: Update for new EXPLAIN output mysql-test/r/user_var.result: Update for new EXPLAIN output mysql-test/r/variables.result: Removed variable safe_show_database mysql-test/t/temp_table.test: Fixed speed bug in GROUP BY mysql-test/t/variables.test: Removed not used variable safe_show_databases scripts/mysqld_safe.sh: Propagate open-files-limit from mysqld_safe -> mysqld sql/mysqld.cc: Removed variable safe_show_database sql/set_var.cc: Removed variable safe_show_database sql/slave.cc: Updated error message sql/sql_db.cc: Added quotes around database name in CREATE DATABASE db_name sql/sql_select.cc: Fixed speed bug in GROUP BY
52 lines
777 B
Text
52 lines
777 B
Text
drop table if exists t1;
|
|
CREATE TABLE t1 (
|
|
a char(5) NOT NULL,
|
|
b char(4) NOT NULL,
|
|
KEY (a),
|
|
KEY (b)
|
|
);
|
|
INSERT INTO t1 VALUES ('A','B'),('b','A'),('C','c'),('D','E'),('a','a');
|
|
select * from t1,t1 as t2;
|
|
a b a b
|
|
A B A B
|
|
b A A B
|
|
C c A B
|
|
D E A B
|
|
a a A B
|
|
A B b A
|
|
b A b A
|
|
C c b A
|
|
D E b A
|
|
a a b A
|
|
A B C c
|
|
b A C c
|
|
C c C c
|
|
D E C c
|
|
a a C c
|
|
A B D E
|
|
b A D E
|
|
C c D E
|
|
D E D E
|
|
a a D E
|
|
A B a a
|
|
b A a a
|
|
C c a a
|
|
D E a a
|
|
a a a a
|
|
explain select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B;
|
|
table type possible_keys key key_len ref rows Extra
|
|
t1 ALL a NULL NULL NULL 5
|
|
t2 ALL b NULL NULL NULL 5 Using where
|
|
select t1.*,t2.* from t1,t1 as t2 where t1.A=t2.B order by binary t1.a,t2.a;
|
|
a b a b
|
|
A B a a
|
|
A B b A
|
|
C c C c
|
|
a a a a
|
|
a a b A
|
|
b A A B
|
|
select * from t1 where a='a';
|
|
a b
|
|
A B
|
|
a a
|
|
drop table t1;
|