summaryrefslogtreecommitdiff
path: root/mysql-test/t/windows.test
blob: efdf0963b804755dfa26b3fbb70b2051bf3de24c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Windows-specific tests
--source include/windows.inc
-- source include/have_innodb.inc

#
# 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;

#
# 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;

# End of 4.1 tests

#
# 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;

#
# 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;