mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 22:12:30 +01:00
869c89feaa
Remember UNION for ALTER TABLE Added test for if we are supporting transactions. Don't allow REPLACE to replace a row when we have generated an auto_increment key Fixed bug when using BLOB keys Fixed bug in SET @variable=user. Docs/manual.texi: Added some examples and moved the Error access denied section to the error section. client/mysqltest.c: Changed to use the new mysql_send_query() include/mysql.h: Changed mysql_reap_query() to mysql_send_query(). libmysql/libmysql.c: Changed mysql_reap_query() to mysql_send_query() Merged some functions and removed some unused functions. mysql-test/r/bdb.result: New test case mysql-test/r/distinct.result: New test case mysql-test/r/key.result: New test case mysql-test/r/merge.result: New test case mysql-test/r/replace.result: New test case mysql-test/t/bdb.test: New test case mysql-test/t/key.test: New test case mysql-test/t/merge.test: New test case mysql-test/t/replace.test: New test case mysys/my_lock.c: Moved global lock variable to static sql-bench/test-insert.sh: Added test case for index-read only sql/field.h: Fixed that one can optimize ORDER BY with ISAM and GEMINI sql/ha_berkeley.cc: Added type casts needed for Windows sql/ha_innobase.cc: Removed reference to manual from comment. sql/ha_myisammrg.cc: Remember UNION for ALTER TABLE sql/ha_myisammrg.h: Remember UNION for ALTER TABLE sql/handler.cc: Added test for if we are supporting transactions. Don't allow REPLACE to replace a row when we have generated an auto_increment key. sql/handler.h: Remember UNION for ALTER TABLE sql/key.cc: Fixed bug when using BLOB keys sql/mysql_priv.h: Added new variables sql/mysqld.cc: Added new variables sql/opt_range.cc: Fixed problem with BLOB keys sql/opt_sum.cc: Fix for BLOB keys sql/sql_class.cc: Added test if we need to init/clean transaction variables sql/sql_insert.cc: Fix for REPLACE and auto_increment keys sql/sql_parse.cc: Fixed bug in max_user_connections sql/sql_select.cc: Fixed problem with key on BLOB sql/sql_yacc.yy: Fixed bug in SET @variable=user. sql/table.cc: Fixed problem with keys on BLOB
169 lines
1.8 KiB
Text
169 lines
1.8 KiB
Text
id
|
|
NULL
|
|
-1
|
|
0
|
|
1
|
|
2
|
|
3
|
|
4
|
|
5
|
|
6
|
|
7
|
|
8
|
|
9
|
|
10
|
|
id facility
|
|
NULL NULL
|
|
-1
|
|
0
|
|
1 /L
|
|
2 A01
|
|
3 ANC
|
|
4 F01
|
|
5 FBX
|
|
6 MT
|
|
7 P
|
|
8 RV
|
|
9 SRV
|
|
10 VMT
|
|
id-5 facility
|
|
NULL NULL
|
|
-6
|
|
-5
|
|
-4 /L
|
|
-3 A01
|
|
-2 ANC
|
|
-1 F01
|
|
0 FBX
|
|
1 MT
|
|
2 P
|
|
3 RV
|
|
4 SRV
|
|
5 VMT
|
|
id concat(facility)
|
|
NULL NULL
|
|
-1
|
|
0
|
|
1 /L
|
|
2 A01
|
|
3 ANC
|
|
4 F01
|
|
5 FBX
|
|
6 MT
|
|
7 P
|
|
8 RV
|
|
9 SRV
|
|
10 VMT
|
|
a max(id) b
|
|
10 10 VMT
|
|
9 9 SRV
|
|
8 8 RV
|
|
7 7 P
|
|
6 6 MT
|
|
5 5 FBX
|
|
4 4 F01
|
|
3 3 ANC
|
|
2 2 A01
|
|
1 1 /L
|
|
-1 -1
|
|
0 0
|
|
NULL NULL NULL
|
|
grp count(*)
|
|
0 7
|
|
1 6
|
|
FACILITY
|
|
NULL
|
|
|
|
/L
|
|
A01
|
|
ANC
|
|
F01
|
|
FBX
|
|
MT
|
|
P
|
|
RV
|
|
SRV
|
|
VMT
|
|
FACILITY
|
|
NULL
|
|
|
|
/L
|
|
A01
|
|
ANC
|
|
F01
|
|
FBX
|
|
MT
|
|
P
|
|
RV
|
|
SRV
|
|
VMT
|
|
count(*)
|
|
12
|
|
count(facility)
|
|
12
|
|
count(*)
|
|
13
|
|
count(*)
|
|
1
|
|
count(*)
|
|
0
|
|
count(*)
|
|
12
|
|
count(*)
|
|
1
|
|
count(*)
|
|
12
|
|
UserId
|
|
UserId
|
|
UserId
|
|
UserId
|
|
b
|
|
1
|
|
table type possible_keys key key_len ref rows Extra
|
|
t3 index a a 5 NULL 6 Using index; Using temporary
|
|
t2 index a a 4 NULL 5 Using index; Distinct
|
|
t1 eq_ref PRIMARY PRIMARY 4 t2.a 1 where used; Distinct
|
|
a
|
|
1
|
|
table type possible_keys key key_len ref rows Extra
|
|
t1 index PRIMARY PRIMARY 4 NULL 2 Using index; Using temporary
|
|
t3 ref a a 5 t1.a 10 Using index; Distinct
|
|
a
|
|
1
|
|
2
|
|
1
|
|
1
|
|
name
|
|
aa
|
|
ab
|
|
name
|
|
aa
|
|
ab
|
|
1
|
|
1
|
|
key_link_id link
|
|
NULL NULL
|
|
table type possible_keys key key_len ref rows Extra
|
|
t1 index id id 4 NULL 2 Using index; Using temporary
|
|
t2 index id id 8 NULL 1 Using index; Distinct
|
|
t3 index id id 8 NULL 1 Using index; Distinct
|
|
j_lj_t2 index id id 4 NULL 2 where used; Using index; Distinct
|
|
t2_lj index id id 8 NULL 1 where used; Using index; Distinct
|
|
j_lj_t3 index id id 4 NULL 2 where used; Using index; Distinct
|
|
t3_lj index id id 8 NULL 1 where used; Using index; Distinct
|
|
id
|
|
2
|
|
a sec_to_time(sum(time_to_sec(t)))
|
|
1 00:06:15
|
|
1 00:36:30
|
|
1 00:36:30
|
|
a sec_to_time(sum(time_to_sec(t)))
|
|
1 00:06:15
|
|
1 00:36:30
|
|
a sec_to_time(sum(time_to_sec(t)))
|
|
1 00:06:15
|
|
1 00:36:30
|
|
1 00:36:30
|
|
a sec_to_time(sum(time_to_sec(t)))
|
|
1 00:06:15
|
|
1 00:36:30
|