mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
f4fee3d90e
Fixes for building MySQL with gcc 3.0 Added SIGNED / UNSIGNED casts Fixed core dump bug in net_clear() with libmysqld. Back to using semaphores in query cache. Added 'Null' and 'Index_type' to SHOW INDEX. BUILD/FINISH.sh: Fixes for gcc 3.0 BUILD/SETUP.sh: Fixes for gcc 3.0 Docs/manual.texi: Changelog + SIGNED/UNSIGNED casts. Makefile.am: include BUILD scripts in source distribution. client/Makefile.am: Fixes for gcc 3.0 client/mysql.cc: Cleanup client/mysqldump.c: Changed 'K' to mean 'disable-keys' instead of 'no-disabled-keys' client/readline.cc: Cleanup configure.in: Include BUILD in source distrbution extra/my_print_defaults.c: Cleanup include/my_global.h: Fix for HPUX and setrlimit. Portability fix. Added macros for nice TIMESPEC usage. innobase/include/dyn0dyn.h: Fix for AIX libmysql/Makefile.shared: Added strxmov to libmysqld libmysqld/examples/Makefile.am: Fixes for gcc 3.0 libmysqld/lib_vio.c: Cleanup myisam/ft_dump.c: Portability fixes myisam/ftdefs.h: Portability fixes mysql-test/r/bdb.result: Cleanup results after adding 2 columns to SHOW KEYS mysql-test/r/bigint.result: New test for SIGNED/UNSIGNED mysql-test/r/fulltext.result: Cleanup results after adding 2 columns to SHOW KEYS mysql-test/r/heap.result: Cleanup results after adding 2 columns to SHOW KEYS mysql-test/r/innodb.result: Cleanup results after adding 2 columns to SHOW KEYS mysql-test/r/isam.result: Cleanup results after adding 2 columns to SHOW KEYS mysql-test/r/key.result: Cleanup results after adding 2 columns to SHOW KEYS mysql-test/r/myisam.result: Cleanup results after adding 2 columns to SHOW KEYS mysql-test/r/query_cache.result: Cleanup results after adding 2 columns to SHOW KEYS mysql-test/r/select.result: Cleanup results after adding 2 columns to SHOW KEYS mysql-test/r/show_check.result: Cleanup results after adding 2 columns to SHOW KEYS mysql-test/r/type_ranges.result: Cleanup results after adding 2 columns to SHOW KEYS mysql-test/t/bigint.test: New test for SIGNED/UNSIGNED mysql-test/t/key.test: New test for SIGNED/UNSIGNED mysql-test/t/query_cache.test: Test for FOUND_ROWS() sql-bench/crash-me.sh: Safety fixes sql/derror.cc: Cleanup sql/ha_berkeley.h: New test for SIGNED/UNSIGNED sql/ha_heap.h: New test for SIGNED/UNSIGNED sql/ha_innobase.cc: New test for SIGNED/UNSIGNED sql/ha_innobase.h: New test for SIGNED/UNSIGNED sql/ha_isam.h: New test for SIGNED/UNSIGNED sql/ha_myisam.cc: New test for SIGNED/UNSIGNED sql/ha_myisam.h: New test for SIGNED/UNSIGNED sql/handler.h: New test for SIGNED/UNSIGNED sql/item_func.cc: Cleanup TIMESPEC usage sql/item_func.h: Added SIGNED / UNSIGNED casts sql/lex.h: Added SIGNED / UNSIGNED casts sql/mysqld.cc: Cleanup TIMESPEC usage sql/net_pkg.cc: Cleanup sql/net_serv.cc: Fixed core dump bug in net_clear() sql/slave.cc: Cleanup sql/sql_cache.cc: Back to using semaphores sql/sql_cache.h: Back to using semaphores sql/sql_insert.cc: Cleanup TIMESPEC usage sql/sql_manager.cc: Cleanup TIMESPEC usage sql/sql_parse.cc: Cleanup sql/sql_repl.cc: Cleanup TIMESPEC usage sql/sql_show.cc: Added 'Null' and 'Index_type' to SHOW INDEX. sql/sql_table.cc: Sort keys in table in a more logical order. sql/sql_yacc.yy: Support for SIGNED/UNSIGNED casts.
79 lines
2.7 KiB
Text
79 lines
2.7 KiB
Text
drop table if exists t1,t2;
|
|
create table t1 (a tinyint not null auto_increment, b blob not null, primary key (a)) type=isam;
|
|
delete from t1 where (a & 1);
|
|
select sum(length(b)) from t1;
|
|
sum(length(b))
|
|
3274494
|
|
drop table t1;
|
|
create table t1 (a int not null auto_increment,b int, primary key (a)) type=isam;
|
|
insert into t1 values (1,1),(NULL,2),(3,3),(NULL,4);
|
|
delete from t1 where a=4 or a=2;
|
|
insert into t1 values (NULL,4),(NULL,5),(6,6);
|
|
select * from t1;
|
|
a b
|
|
1 1
|
|
5 5
|
|
3 3
|
|
4 4
|
|
6 6
|
|
delete from t1 where a=6;
|
|
replace t1 values (3,1);
|
|
replace t1 values (3,3);
|
|
ALTER TABLE t1 add c int;
|
|
insert into t1 values (NULL,6,6);
|
|
select * from t1;
|
|
a b c
|
|
1 1 NULL
|
|
5 5 NULL
|
|
3 3 NULL
|
|
4 4 NULL
|
|
6 6 6
|
|
drop table t1;
|
|
create table t1 (a int,b text, index(a)) type=isam;
|
|
Column 'a' is used with UNIQUE or INDEX but is not defined as NOT NULL
|
|
create table t1 (a int,b text, index(b)) type=isam;
|
|
BLOB column 'b' can't be used in key specification with the used table type
|
|
create table t1 (ordid int(8) not null auto_increment, ord varchar(50) not null, primary key (ord,ordid)) type=isam;
|
|
Incorrect table definition; There can only be one auto column and it must be defined as a key
|
|
create table t1 (ordid int(8), unique (ordid)) type=isam;
|
|
Column 'ordid' is used with UNIQUE or INDEX but is not defined as NOT NULL
|
|
drop table if exists t1;
|
|
create table t1 (a int not null primary key, b int not null,c int not null, key(b,c));
|
|
insert into t1 values (1,2,2),(2,2,3),(3,2,4),(4,2,4);
|
|
create table t2 type=isam select * from t1;
|
|
optimize table t1;
|
|
Table Op Msg_type Msg_text
|
|
test.t1 optimize status OK
|
|
check table t1,t2;
|
|
Table Op Msg_type Msg_text
|
|
test.t1 check status OK
|
|
test.t2 check error The handler for the table doesn't support check/repair
|
|
repair table t1,t2;
|
|
Table Op Msg_type Msg_text
|
|
test.t1 repair status OK
|
|
test.t2 repair error The handler for the table doesn't support check/repair
|
|
check table t2,t1;
|
|
Table Op Msg_type Msg_text
|
|
test.t2 check error The handler for the table doesn't support check/repair
|
|
test.t1 check status OK
|
|
lock tables t1 write;
|
|
check table t2,t1;
|
|
Table Op Msg_type Msg_text
|
|
test.t2 check error Table 't2' was not locked with LOCK TABLES
|
|
test.t1 check status OK
|
|
show columns from t1;
|
|
Field Type Null Key Default Extra
|
|
a int(11) PRI 0
|
|
b int(11) MUL 0
|
|
c int(11) 0
|
|
show full columns from t1;
|
|
Field Type Null Key Default Extra Privileges
|
|
a int(11) PRI 0 select,insert,update,references
|
|
b int(11) MUL 0 select,insert,update,references
|
|
c int(11) 0 select,insert,update,references
|
|
show index from t1;
|
|
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment
|
|
t1 0 PRIMARY 1 a A 4 NULL NULL BTREE
|
|
t1 1 b 1 b A 1 NULL NULL BTREE
|
|
t1 1 b 2 c A 4 NULL NULL BTREE
|
|
drop table t1,t2;
|