mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Timestamp-based versioning for InnoDB [closes #209]
* Removed integer_fields check * Reworked Vers_parse_info::check_sys_fields() * Misc renames * versioned as vers_sys_type_t * Removed versioned_by_sql(), versioned_by_engine() versioned() works as before; versioned(VERS_TIMESTAMP) is versioned_by_sql(); versioned(VERS_TRX_ID) is versioned_by_engine(). * create_tmp_table() fix * Foreign constraints for timestamp-based * Range auto-specifier fix * SQL: 1-row partition rotation fix [fixes #260] * Fix 'drop system versioning, algorithm=inplace'
This commit is contained in:
@ -18,16 +18,16 @@ with system versioning;
|
||||
select now() into @ts_0;
|
||||
insert into dept (dept_id, name) values (10, "accounting");
|
||||
commit;
|
||||
select vtq_commit_ts(sys_trx_start) into @ts_1 from dept where dept_id=10;
|
||||
select sys_trx_start into @ts_1 from dept where dept_id=10;
|
||||
insert into emp (emp_id, name, salary, dept_id) values (1, "bill", 1000, 10);
|
||||
commit;
|
||||
select vtq_commit_ts(sys_trx_start) into @ts_2 from emp where name="bill";
|
||||
select sys_trx_start into @ts_2 from emp where name="bill";
|
||||
select * from emp;
|
||||
emp_id dept_id name salary
|
||||
1 10 bill 1000
|
||||
update emp set salary=2000 where name="bill";
|
||||
commit;
|
||||
select vtq_commit_ts(sys_trx_start) into @ts_3 from emp where name="bill";
|
||||
select sys_trx_start into @ts_3 from emp where name="bill";
|
||||
select * from emp;
|
||||
emp_id dept_id name salary
|
||||
1 10 bill 2000
|
||||
|
Reference in New Issue
Block a user