Skip to content

Commit

Permalink
*: support alter table row_format for the compatibility (#48769)
Browse files Browse the repository at this point in the history
close #48754
  • Loading branch information
hawkingrei committed Nov 22, 2023
1 parent 9062834 commit 4bbd56b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions pkg/ddl/ddl_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -3794,6 +3794,7 @@ func (d *ddl) AlterTable(ctx context.Context, sctx sessionctx.Context, stmt *ast
Name: model.NewCIStr(opt.StrValue),
}
case ast.TableOptionEngine:
case ast.TableOptionRowFormat:
case ast.TableOptionTTL, ast.TableOptionTTLEnable, ast.TableOptionTTLJobInterval:
var ttlInfo *model.TTLInfo
var ttlEnable *bool
Expand Down
2 changes: 1 addition & 1 deletion tests/integrationtest/r/util/admin.result
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ALTER TABLE t1 ADD COLUMN cc1 CHAR(36) NULL DEFAULT '';
ALTER TABLE t1 ADD COLUMN cc2 VARCHAR(36) NULL DEFAULT '';
ALTER TABLE t1 ADD INDEX idx1 (cc1);
ALTER TABLE t1 ADD INDEX idx2 (cc2);
ALTER TABLE t1 engine=innodb;
ALTER TABLE t1 engine=innodb, ROW_FORMAT=DYNAMIC;
admin check table t1;
drop table if exists t1;
create table t1 (
Expand Down
2 changes: 1 addition & 1 deletion tests/integrationtest/t/util/admin.test
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ALTER TABLE t1 ADD COLUMN cc1 CHAR(36) NULL DEFAULT '';
ALTER TABLE t1 ADD COLUMN cc2 VARCHAR(36) NULL DEFAULT '';
ALTER TABLE t1 ADD INDEX idx1 (cc1);
ALTER TABLE t1 ADD INDEX idx2 (cc2);
ALTER TABLE t1 engine=innodb;
ALTER TABLE t1 engine=innodb, ROW_FORMAT=DYNAMIC;
admin check table t1;
drop table if exists t1;
create table t1 (
Expand Down

0 comments on commit 4bbd56b

Please sign in to comment.