~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/t/windows.test

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Windows-specific tests
 
2
--source include/windows.inc
 
3
 
 
4
#
 
5
# Bug 9148: Denial of service
 
6
#
 
7
--error 1049
 
8
use lpt1;
 
9
--error 1049
 
10
use com1;
 
11
--error 1049
 
12
use prn;
 
13
 
 
14
#
 
15
# Bug #12325: Can't create table named 'nu'
 
16
#
 
17
create table nu (a int);
 
18
drop table nu;
 
19
 
 
20
#
 
21
# Bug17489: ailed to put data file in custom directory use "data directory" option
 
22
#
 
23
--disable_warnings
 
24
drop table if exists t1;
 
25
--enable_warnings
 
26
CREATE TABLE t1 ( `ID` int(6) ) data directory 'c:/tmp/' index directory 'c:/tmp/' engine=MyISAM;
 
27
drop table t1;
 
28
 
 
29
# End of 4.1 tests
 
30
 
 
31
#
 
32
# Bug #27811: The variable 'join_tab' is being used without being defined
 
33
#
 
34
CREATE TABLE t1 (a int, b int); INSERT INTO t1 VALUES (1,1);
 
35
EXPLAIN SELECT * FROM t1 WHERE b =  (SELECT max(2));
 
36
DROP TABLE t1;
 
37
 
 
38
#
 
39
# Bug #33813: Schema names are case-sensitive in DROP FUNCTION
 
40
#
 
41
 
 
42
CREATE DATABASE `TESTDB`;
 
43
 
 
44
USE `TESTDB`;
 
45
DELIMITER //;
 
46
 
 
47
CREATE FUNCTION test_fn() RETURNS INTEGER
 
48
BEGIN
 
49
DECLARE rId bigint;
 
50
RETURN rId;
 
51
END
 
52
//
 
53
 
 
54
CREATE FUNCTION test_fn2() RETURNS INTEGER
 
55
BEGIN
 
56
DECLARE rId bigint;
 
57
RETURN rId;
 
58
END
 
59
//
 
60
 
 
61
DELIMITER ;//
 
62
 
 
63
DROP FUNCTION `TESTDB`.`test_fn`;
 
64
DROP FUNCTION `testdb`.`test_fn2`;
 
65
 
 
66
USE test;
 
67
DROP DATABASE `TESTDB`;
 
68
 
 
69
--echo End of 5.0 tests.
 
70
 
 
71
--disable_warnings
 
72
drop procedure if exists proc_1;
 
73
--enable_warnings
 
74
#
 
75
# Bug #20665: All commands supported in Stored Procedures should work in
 
76
# Prepared Statements
 
77
#
 
78
 
 
79
create procedure proc_1() install plugin my_plug soname '\\root\\some_plugin.dll';
 
80
--error ER_UDF_NO_PATHS
 
81
call proc_1();
 
82
--error ER_UDF_NO_PATHS
 
83
call proc_1();
 
84
--error ER_UDF_NO_PATHS
 
85
call proc_1();
 
86
drop procedure proc_1;
 
87
 
 
88
prepare abc from "install plugin my_plug soname '\\\\root\\\\some_plugin.dll'";
 
89
--error ER_UDF_NO_PATHS
 
90
execute abc;
 
91
--error ER_UDF_NO_PATHS
 
92
execute abc;
 
93
deallocate prepare abc;
 
94
 
 
95
--echo #
 
96
--echo # Bug#45498: Socket variable not available on Windows
 
97
--echo #
 
98
 
 
99
SELECT VARIABLE_NAME FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
 
100
  WHERE VARIABLE_NAME = 'socket';