Skip to content

Commit

Permalink
Tests: added tests for versioned tables with implicitly added fields
Browse files Browse the repository at this point in the history
  • Loading branch information
kevgs authored and midenok committed May 5, 2017
1 parent 6ccae73 commit 2c4527f
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
14 changes: 14 additions & 0 deletions mysql-test/r/insert.result
Expand Up @@ -915,3 +915,17 @@ No A B C D
drop table t1;
drop table t2;
drop procedure verify_vtq;
CREATE TABLE t1(
id BIGINT PRIMARY KEY,
A INT,
B INT
) WITH SYSTEM VERSIONING;
INSERT INTO t1 VALUES(1, 1, 1);
DROP TABLE t1;
CREATE TABLE t1(
id BIGINT PRIMARY KEY,
A INT,
B INT
) WITH SYSTEM VERSIONING ENGINE=INNODB;
INSERT INTO t1 VALUES(1, 1, 1);
DROP TABLE t1;
20 changes: 19 additions & 1 deletion mysql-test/t/insert.test
Expand Up @@ -737,4 +737,22 @@ call verify_vtq;

drop table t1;
drop table t2;
drop procedure verify_vtq;
drop procedure verify_vtq;

# Check whether it is possible to insert rows in a versioned table
# with implicit fields without crash.
CREATE TABLE t1(
id BIGINT PRIMARY KEY,
A INT,
B INT
) WITH SYSTEM VERSIONING;
INSERT INTO t1 VALUES(1, 1, 1);
DROP TABLE t1;

CREATE TABLE t1(
id BIGINT PRIMARY KEY,
A INT,
B INT
) WITH SYSTEM VERSIONING ENGINE=INNODB;
INSERT INTO t1 VALUES(1, 1, 1);
DROP TABLE t1;

0 comments on commit 2c4527f

Please sign in to comment.