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
880d1ccd
Commit
880d1ccd
authored
Mar 25, 2006
by
dlenev@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/dlenev/mysql-5.0-bg18153
into mysql.com:/home/dlenev/mysql-5.1-merges
parents
8643070c
4d1d8ed3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
sql/sql_table.cc
sql/sql_table.cc
+3
-1
No files found.
sql/sql_table.cc
View file @
880d1ccd
...
...
@@ -3944,6 +3944,7 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name,
uint
db_create_options
,
used_fields
;
handlerton
*
old_db_type
,
*
new_db_type
;
uint
need_copy_table
=
0
;
bool
no_table_reopen
=
FALSE
;
#ifdef WITH_PARTITION_STORAGE_ENGINE
uint
fast_alter_partition
=
0
;
bool
partition_changed
=
FALSE
;
...
...
@@ -4977,6 +4978,7 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name,
table
->
s
->
version
=
0
;
// Force removal of table def
close_cached_table
(
thd
,
table
);
table
=
0
;
// Marker that table is closed
no_table_reopen
=
TRUE
;
}
#if (!defined( __WIN__) && !defined( __EMX__) && !defined( OS2))
else
...
...
@@ -5034,7 +5036,7 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name,
goto
err
;
}
}
if
(
thd
->
lock
||
new_name
!=
table_name
)
// True if WIN32
if
(
thd
->
lock
||
new_name
!=
table_name
||
no_table_reopen
)
// True if WIN32
{
/*
Not table locking or alter table with rename.
...
...
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