mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge osalerma@bk-internal.mysql.com:/home/bk/mysql-5.0
into 127.(none):/home/osku/mysql-5.0
This commit is contained in:
@ -523,6 +523,10 @@ alter table t1 drop key no_such_key;
|
||||
ERROR 42000: Can't DROP 'no_such_key'; check that column/key exists
|
||||
alter table t1 drop key a;
|
||||
drop table t1;
|
||||
CREATE TABLE T12207(a int) ENGINE=MYISAM;
|
||||
ALTER TABLE T12207 DISCARD TABLESPACE;
|
||||
ERROR HY000: Table storage engine for 'T12207' doesn't have this option
|
||||
DROP TABLE T12207;
|
||||
create table t1 (a text) character set koi8r;
|
||||
insert into t1 values (_koi8r'<27><><EFBFBD><EFBFBD>');
|
||||
select hex(a) from t1;
|
||||
|
@ -31,6 +31,10 @@ a
|
||||
Test delimiter delimiter
|
||||
a
|
||||
1
|
||||
Tables_in_test
|
||||
t1
|
||||
t2
|
||||
t3
|
||||
|
||||
Test delimiter : from command line
|
||||
a
|
||||
|
@ -2875,6 +2875,16 @@ b a t1_val t2_val
|
||||
1 1 1 1
|
||||
1 2 2 1
|
||||
drop table t1, t2, t3;
|
||||
DO IFNULL(NULL, NULL);
|
||||
SELECT CAST(IFNULL(NULL, NULL) AS DECIMAL);
|
||||
CAST(IFNULL(NULL, NULL) AS DECIMAL)
|
||||
NULL
|
||||
SELECT ABS(IFNULL(NULL, NULL));
|
||||
ABS(IFNULL(NULL, NULL))
|
||||
NULL
|
||||
SELECT IFNULL(NULL, NULL);
|
||||
IFNULL(NULL, NULL)
|
||||
NULL
|
||||
create table t1 (a char(1));
|
||||
create table t2 (a char(1));
|
||||
insert into t1 values ('a'),('b'),('c');
|
||||
|
@ -748,6 +748,14 @@ end|
|
||||
call bug11394(2, 1)|
|
||||
ERROR HY000: Recursive stored routines are not allowed.
|
||||
drop procedure bug11394|
|
||||
CREATE PROCEDURE BUG_12490() HELP CONTENTS;
|
||||
ERROR 0A000: HELP is not allowed in stored procedures
|
||||
CREATE FUNCTION BUG_12490() RETURNS INT HELP CONTENTS;
|
||||
ERROR 0A000: HELP is not allowed in stored procedures
|
||||
CREATE TABLE t_bug_12490(a int);
|
||||
CREATE TRIGGER BUG_12490 BEFORE UPDATE ON t_bug_12490 FOR EACH ROW HELP CONTENTS;
|
||||
ERROR 0A000: HELP is not allowed in stored procedures
|
||||
DROP TABLE t_bug_12490;
|
||||
drop function if exists bug11834_1;
|
||||
drop function if exists bug11834_2;
|
||||
create function bug11834_1() returns int return 10;
|
||||
|
@ -337,6 +337,14 @@ alter table t1 drop key no_such_key;
|
||||
alter table t1 drop key a;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# BUG 12207 alter table ... discard table space on MyISAM table causes ERROR 2013 (HY000)
|
||||
#
|
||||
CREATE TABLE T12207(a int) ENGINE=MYISAM;
|
||||
--error 1031
|
||||
ALTER TABLE T12207 DISCARD TABLESPACE;
|
||||
DROP TABLE T12207;
|
||||
|
||||
#
|
||||
# Bug #6479 ALTER TABLE ... changing charset fails for TEXT columns
|
||||
#
|
||||
|
@ -45,4 +45,7 @@ delimiter delimiter
|
||||
select * from t1 delimiter
|
||||
delimiter ; # Reset delimiter
|
||||
|
||||
|
||||
#
|
||||
# Bug #11523: \d works differently than delimiter
|
||||
#
|
||||
source t/mysql_delimiter_source.sql
|
||||
|
8
mysql-test/t/mysql_delimiter_source.sql
Normal file
8
mysql-test/t/mysql_delimiter_source.sql
Normal file
@ -0,0 +1,8 @@
|
||||
delimiter //
|
||||
create table t2 (a int) //
|
||||
delimiter ;
|
||||
\d //
|
||||
create table t3 (a int) //
|
||||
\d ;
|
||||
show tables;
|
||||
drop table t2, t3;
|
@ -2445,6 +2445,15 @@ select * from t1 natural join t3 natural join t2;
|
||||
drop table t1, t2, t3;
|
||||
|
||||
|
||||
#
|
||||
# Bug #12841: Server crash on DO IFNULL(NULL,NULL)
|
||||
#
|
||||
# (testing returning of int, decimal, real, string)
|
||||
DO IFNULL(NULL, NULL);
|
||||
SELECT CAST(IFNULL(NULL, NULL) AS DECIMAL);
|
||||
SELECT ABS(IFNULL(NULL, NULL));
|
||||
SELECT IFNULL(NULL, NULL);
|
||||
|
||||
#
|
||||
# Bug #6495 Illogical requirement for column qualification in NATURAL join
|
||||
#
|
||||
|
@ -1079,6 +1079,19 @@ call bug11394(2, 1)|
|
||||
drop procedure bug11394|
|
||||
delimiter ;|
|
||||
|
||||
|
||||
#
|
||||
# BUG 12490 (Packets out of order if calling HELP CONTENTS from Stored Procedure)
|
||||
#
|
||||
--error 1314
|
||||
CREATE PROCEDURE BUG_12490() HELP CONTENTS;
|
||||
--error 1314
|
||||
CREATE FUNCTION BUG_12490() RETURNS INT HELP CONTENTS;
|
||||
CREATE TABLE t_bug_12490(a int);
|
||||
--error 1314
|
||||
CREATE TRIGGER BUG_12490 BEFORE UPDATE ON t_bug_12490 FOR EACH ROW HELP CONTENTS;
|
||||
DROP TABLE t_bug_12490;
|
||||
|
||||
#
|
||||
# Bug#11834 "Re-execution of prepared statement with dropped function
|
||||
# crashes server". Also tests handling of prepared stmts which use
|
||||
|
Reference in New Issue
Block a user