2005-09-01 03:32:15 +02:00
|
|
|
# Windows-specific tests
|
|
|
|
--source include/windows.inc
|
2007-04-05 17:26:18 +02:00
|
|
|
-- source include/have_innodb.inc
|
2005-09-01 03:32:15 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Bug 9148: Denial of service
|
|
|
|
#
|
|
|
|
--error 1049
|
|
|
|
use lpt1;
|
|
|
|
--error 1049
|
|
|
|
use com1;
|
|
|
|
--error 1049
|
|
|
|
use prn;
|
|
|
|
|
|
|
|
#
|
|
|
|
# Bug #12325: Can't create table named 'nu'
|
|
|
|
#
|
|
|
|
create table nu (a int);
|
|
|
|
drop table nu;
|
|
|
|
|
2006-12-07 17:01:00 +01:00
|
|
|
#
|
|
|
|
# Bug17489: ailed to put data file in custom directory use "data directory" option
|
|
|
|
#
|
|
|
|
--disable_warnings
|
|
|
|
drop table if exists t1;
|
|
|
|
--enable_warnings
|
|
|
|
CREATE TABLE t1 ( `ID` int(6) ) data directory 'c:/tmp/' index directory 'c:/tmp/' engine=MyISAM;
|
|
|
|
drop table t1;
|
|
|
|
|
2005-09-01 03:32:15 +02:00
|
|
|
# End of 4.1 tests
|
2006-11-20 21:18:57 +01:00
|
|
|
|
2007-04-23 16:15:51 +02:00
|
|
|
#
|
|
|
|
# Bug #27811: The variable 'join_tab' is being used without being defined
|
|
|
|
#
|
|
|
|
CREATE TABLE t1 (a int, b int); INSERT INTO t1 VALUES (1,1);
|
|
|
|
EXPLAIN SELECT * FROM t1 WHERE b = (SELECT max(2));
|
|
|
|
|
|
|
|
--echo End of 5.0 tests.
|
2007-04-29 10:19:32 +02:00
|
|
|
|
2006-11-20 21:18:57 +01:00
|
|
|
#
|
|
|
|
# Bug #20665: All commands supported in Stored Procedures should work in
|
|
|
|
# Prepared Statements
|
|
|
|
#
|
|
|
|
|
|
|
|
create procedure proc_1() install plugin my_plug soname '\\root\\some_plugin.dll';
|
|
|
|
--error ER_UDF_NO_PATHS
|
|
|
|
call proc_1();
|
|
|
|
--error ER_UDF_NO_PATHS
|
|
|
|
call proc_1();
|
|
|
|
--error ER_UDF_NO_PATHS
|
|
|
|
call proc_1();
|
|
|
|
drop procedure proc_1;
|
|
|
|
|
|
|
|
prepare abc from "install plugin my_plug soname '\\\\root\\\\some_plugin.dll'";
|
|
|
|
--error ER_UDF_NO_PATHS
|
|
|
|
execute abc;
|
|
|
|
--error ER_UDF_NO_PATHS
|
|
|
|
execute abc;
|
|
|
|
deallocate prepare abc;
|
|
|
|
|
2007-04-05 17:26:18 +02:00
|
|
|
#
|
|
|
|
# Bug #26074 Mysql crash when creating partitions
|
|
|
|
#
|
|
|
|
|
|
|
|
CREATE TABLE t1 (
|
|
|
|
`pkid` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
`SALES_DATE` date NOT NULL DEFAULT '0000-00-00',
|
|
|
|
KEY `pkid` (`pkid`)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
|
|
|
PARTITION BY RANGE (MONTH(SALES_DATE))
|
|
|
|
(
|
|
|
|
PARTITION p0 VALUES LESS THAN (2) ENGINE=INNODB
|
|
|
|
data DIRECTORY='c:/tmp/'
|
|
|
|
index DIRECTORY = 'c:/tmp/',
|
|
|
|
PARTITION p1 VALUES LESS THAN (3) ENGINE=INNODB
|
|
|
|
data DIRECTORY='c:/tmp/'
|
|
|
|
index DIRECTORY = 'c:/tmp/'
|
|
|
|
);
|
|
|
|
|
|
|
|
DROP TABLE t1;
|