Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
0fc282bb
Commit
0fc282bb
authored
Apr 30, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge dkatz@bk-internal.mysql.com:/home/bk/mysql-5.0-maint
into damien-katzs-computer.local:/Users/dkatz/mysql50
parents
930912f8
2127e26d
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
50 additions
and
12 deletions
+50
-12
mysql-test/include/have_lowercase1.inc
mysql-test/include/have_lowercase1.inc
+4
-0
mysql-test/lib/mtr_report.pl
mysql-test/lib/mtr_report.pl
+2
-2
mysql-test/r/lowercase1.require
mysql-test/r/lowercase1.require
+2
-0
mysql-test/r/lowercase_mixed_tmpdir.result
mysql-test/r/lowercase_mixed_tmpdir.result
+6
-0
mysql-test/t/lowercase_mixed_tmpdir-master.opt
mysql-test/t/lowercase_mixed_tmpdir-master.opt
+2
-0
mysql-test/t/lowercase_mixed_tmpdir-master.sh
mysql-test/t/lowercase_mixed_tmpdir-master.sh
+6
-0
mysql-test/t/lowercase_mixed_tmpdir.test
mysql-test/t/lowercase_mixed_tmpdir.test
+12
-0
sql/sql_table.cc
sql/sql_table.cc
+16
-10
No files found.
mysql-test/include/have_lowercase1.inc
0 → 100644
View file @
0fc282bb
--
require
r
/
lowercase1
.
require
--
disable_query_log
show
variables
like
'lower_case_table_names'
;
--
enable_query_log
mysql-test/lib/mtr_report.pl
View file @
0fc282bb
...
...
@@ -238,7 +238,7 @@ sub mtr_report_stats ($) {
}
if
(
!
$::opt_extern
)
{
print
"
The servers w
h
ere restarted
$tot_restarts
times
\n
";
print
"
The servers were restarted
$tot_restarts
times
\n
";
}
if
(
$::opt_timer
)
...
...
@@ -357,7 +357,7 @@ sub mtr_report_stats ($) {
if
(
$tot_failed
!=
0
||
$found_problems
)
{
mtr_error
("
there w
h
ere failing test cases
");
mtr_error
("
there were failing test cases
");
}
}
...
...
mysql-test/r/lowercase1.require
0 → 100644
View file @
0fc282bb
Variable_name Value
lower_case_table_names 1
mysql-test/r/lowercase_mixed_tmpdir.result
0 → 100644
View file @
0fc282bb
drop table if exists t1;
create table t1 (id int) engine=myisam;
insert into t1 values (1);
create temporary table t2 select * from t1;
drop temporary table t2;
drop table t1;
mysql-test/t/lowercase_mixed_tmpdir-master.opt
0 → 100644
View file @
0fc282bb
--lower-case-table-names=1
--tmpdir=$MYSQLTEST_VARDIR/tmp/MixedCase
mysql-test/t/lowercase_mixed_tmpdir-master.sh
0 → 100644
View file @
0fc282bb
# This test requires a non-lowercase tmpdir directory on a case-sensitive
# filesystem.
d
=
"
$MYSQLTEST_VARDIR
/tmp/MixedCase"
test
-d
"
$d
"
||
mkdir
"
$d
"
rm
-f
"
$d
"
/
*
mysql-test/t/lowercase_mixed_tmpdir.test
0 → 100644
View file @
0fc282bb
--
source
include
/
have_case_sensitive_file_system
.
inc
--
source
include
/
have_lowercase1
.
inc
--
disable_warnings
drop
table
if
exists
t1
;
--
enable_warnings
create
table
t1
(
id
int
)
engine
=
myisam
;
insert
into
t1
values
(
1
);
create
temporary
table
t2
select
*
from
t1
;
drop
temporary
table
t2
;
drop
table
t1
;
sql/sql_table.cc
View file @
0fc282bb
...
...
@@ -42,6 +42,7 @@ static int copy_data_between_tables(TABLE *from,TABLE *to,
static
bool
prepare_blob_field
(
THD
*
thd
,
create_field
*
sql_field
);
static
bool
check_engine
(
THD
*
thd
,
const
char
*
table_name
,
enum
db_type
*
new_engine
);
static
void
set_tmp_file_path
(
char
*
buf
,
size_t
bufsize
,
THD
*
thd
);
/*
...
...
@@ -1681,11 +1682,7 @@ bool mysql_create_table(THD *thd,const char *db, const char *table_name,
/* Check if table exists */
if
(
create_info
->
options
&
HA_LEX_CREATE_TMP_TABLE
)
{
my_snprintf
(
path
,
sizeof
(
path
),
"%s%s%lx_%lx_%x%s"
,
mysql_tmpdir
,
tmp_file_prefix
,
current_pid
,
thd
->
thread_id
,
thd
->
tmp_table
++
,
reg_ext
);
if
(
lower_case_table_names
)
my_casedn_str
(
files_charset_info
,
path
);
set_tmp_file_path
(
path
,
sizeof
(
path
),
thd
);
create_info
->
table_options
|=
HA_CREATE_DELAY_KEY_WRITE
;
}
else
...
...
@@ -2801,11 +2798,7 @@ bool mysql_create_like_table(THD* thd, TABLE_LIST* table,
{
if
(
find_temporary_table
(
thd
,
db
,
table_name
))
goto
table_exists
;
my_snprintf
(
dst_path
,
sizeof
(
dst_path
),
"%s%s%lx_%lx_%x%s"
,
mysql_tmpdir
,
tmp_file_prefix
,
current_pid
,
thd
->
thread_id
,
thd
->
tmp_table
++
,
reg_ext
);
if
(
lower_case_table_names
)
my_casedn_str
(
files_charset_info
,
dst_path
);
set_tmp_file_path
(
dst_path
,
sizeof
(
dst_path
),
thd
);
create_info
->
table_options
|=
HA_CREATE_DELAY_KEY_WRITE
;
}
else
...
...
@@ -4319,3 +4312,16 @@ static bool check_engine(THD *thd, const char *table_name,
}
return
FALSE
;
}
static
void
set_tmp_file_path
(
char
*
buf
,
size_t
bufsize
,
THD
*
thd
)
{
char
*
p
=
strnmov
(
buf
,
mysql_tmpdir
,
bufsize
);
my_snprintf
(
p
,
bufsize
-
(
p
-
buf
),
"%s%lx_%lx_%x%s"
,
tmp_file_prefix
,
current_pid
,
thd
->
thread_id
,
thd
->
tmp_table
++
,
reg_ext
);
if
(
lower_case_table_names
)
{
/* Convert all except tmpdir to lower case */
my_casedn_str
(
files_charset_info
,
p
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment