1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

SQL: compare TRX_ID fields against timestamps [closes #231]

This commit is contained in:
Aleksey Midenkov
2017-08-03 10:11:49 +03:00
parent d998da0306
commit c2c8808a16
26 changed files with 1107 additions and 256 deletions

View File

@@ -24,7 +24,7 @@ insert into emp (emp_id, name, salary, dept_id, mgr) values
(1, "bill", 1000, 10, null),
(20, "john", 500, 10, 1),
(30, "jane", 750, 10,1 );
select vtq_commit_ts(max(sys_trx_start)) into @ts_1 from emp;
select vtq_commit_ts(max(sys_trx_start + 0)) into @ts_1 from emp;
update emp set mgr=30 where name ="john";
select vtq_commit_ts(sys_trx_start) into @ts_2 from emp where name="john";
/* All report to 'Bill' */