Merge lp://staging/~stewart/drizzle/bug728260 into lp://staging/drizzle/7.0

Proposed by Stewart Smith
Status: Rejected
Rejected by: Stewart Smith
Proposed branch: lp://staging/~stewart/drizzle/bug728260
Merge into: lp://staging/drizzle/7.0
Diff against target: 28 lines (+0/-7)
2 files modified
drizzled/alter_info.h (+0/-1)
drizzled/sql_yacc.yy (+0/-6)
To merge this branch: bzr merge lp://staging/~stewart/drizzle/bug728260
Reviewer Review Type Date Requested Status
Drizzle Developers Pending
Review via email: mp+52014@code.staging.launchpad.net

Description of the change

remove useless part of ALTER TABLE syntax that has done nothing since MySQL 5.1.42

To post a comment you must log in.
Revision history for this message
Brian Aker (brianaker) wrote :

This does rebuild a table which could be damaged (ie this is used for Innodb, and of course MyISAM).

Revision history for this message
Stewart Smith (stewart) wrote :

this could also be done by ALTER TABLE .. ORDER BY pkey or another key that is less damaged - giving more control.

It's also undocumented, and has been undocumented for a long time.

Revision history for this message
Brian Aker (brianaker) wrote :

What if the user doesn't have a primary key? Making a user go through the sort code (which then makes an additional copy of the table) seems like a lot of work.

Let's just document this, there is a good reason this exists.

Unmerged revisions

2216. By Stewart Smith

remove the FORCE clause from ALTER TABLE. Previously you could do ALTER TABLE t1 FORCE - which ended up doing nothing useful at all. This has done nothing since MySQL 5.1.42 (at least)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches