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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
5d4b5dea
Commit
5d4b5dea
authored
Jun 14, 2006
by
svoj@may.pils.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
After merge fix.
parent
64bcd2cc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
sql/sql_table.cc
sql/sql_table.cc
+9
-0
No files found.
sql/sql_table.cc
View file @
5d4b5dea
...
@@ -4709,6 +4709,14 @@ static uint compare_tables(TABLE *table, List<create_field> *create_list,
...
@@ -4709,6 +4709,14 @@ static uint compare_tables(TABLE *table, List<create_field> *create_list,
At the moment we can't handle altering temporary tables without a copy.
At the moment we can't handle altering temporary tables without a copy.
We also test if OPTIMIZE TABLE was given and was mapped to alter table.
We also test if OPTIMIZE TABLE was given and was mapped to alter table.
In that case we always do full copy.
In that case we always do full copy.
There was a bug prior to mysql-4.0.25. Number of null fields was
calculated incorrectly. As a result frm and data files gets out of
sync after fast alter table. There is no way to determine by which
mysql version (in 4.0 and 4.1 branches) table was created, thus we
disable fast alter table for all tables created by mysql versions
prior to 5.0 branch.
See BUG#6236.
*/
*/
if
(
table
->
s
->
fields
!=
create_list
->
elements
||
if
(
table
->
s
->
fields
!=
create_list
->
elements
||
table
->
s
->
db_type
!=
create_info
->
db_type
||
table
->
s
->
db_type
!=
create_info
->
db_type
||
...
@@ -4718,6 +4726,7 @@ static uint compare_tables(TABLE *table, List<create_field> *create_list,
...
@@ -4718,6 +4726,7 @@ static uint compare_tables(TABLE *table, List<create_field> *create_list,
create_info
->
used_fields
&
HA_CREATE_USED_DEFAULT_CHARSET
||
create_info
->
used_fields
&
HA_CREATE_USED_DEFAULT_CHARSET
||
(
alter_info
->
flags
&
(
ALTER_RECREATE
|
ALTER_FOREIGN_KEY
))
||
(
alter_info
->
flags
&
(
ALTER_RECREATE
|
ALTER_FOREIGN_KEY
))
||
order_num
||
order_num
||
!
table
->
s
->
mysql_version
||
(
table
->
s
->
frm_version
<
FRM_VER_TRUE_VARCHAR
&&
varchar
))
(
table
->
s
->
frm_version
<
FRM_VER_TRUE_VARCHAR
&&
varchar
))
DBUG_RETURN
(
ALTER_TABLE_DATA_CHANGED
);
DBUG_RETURN
(
ALTER_TABLE_DATA_CHANGED
);
...
...
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