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:
@@ -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' */
|
||||
|
Reference in New Issue
Block a user