Commit b33e9493 authored by unknown's avatar unknown
Browse files

Fix handling of filenames that start the same as reserved filenames

on Windows. (Bug #12325)


mysql-test/r/lowercase_table.result:
  Update results
mysql-test/t/lowercase_table.test:
  Move test to new windows.test, since it is Windows-specific
mysys/my_access.c:
  Check that we've matched the whole forbidden name.
mysql-test/include/windows.inc:
  New BitKeeper file ``mysql-test/include/windows.inc''
mysql-test/r/windows.result:
  New BitKeeper file ``mysql-test/r/windows.result''
mysql-test/t/windows.test:
  New BitKeeper file ``mysql-test/t/windows.test''
parent e6ac9175
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
--require r/true.require
disable_query_log;
select convert(@@version_compile_os using latin1) IN ("Win32","Win64","Windows") as "TRUE";
enable_query_log;
+0 −6
Original line number Diff line number Diff line
@@ -83,9 +83,3 @@ create table t2 like T1;
drop table t1, t2;
show tables;
Tables_in_test
use lpt1;
ERROR 42000: Unknown database 'lpt1'
use com1;
ERROR 42000: Unknown database 'com1'
use prn;
ERROR 42000: Unknown database 'prn'
+8 −0
Original line number Diff line number Diff line
use lpt1;
ERROR 42000: Unknown database 'lpt1'
use com1;
ERROR 42000: Unknown database 'com1'
use prn;
ERROR 42000: Unknown database 'prn'
create table nu (a int);
drop table nu;
+0 −10
Original line number Diff line number Diff line
@@ -83,14 +83,4 @@ drop table t1, t2;

show tables;

#
#Bug 9148: Denial of service
#
--error 1049
use lpt1;
--error 1049
use com1;
--error 1049
use prn;

# End of 4.1 tests
+20 −0
Original line number Diff line number Diff line
# Windows-specific tests
--source include/windows.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;

# End of 4.1 tests
Loading