1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

SQL: MAX microseconds for current system rows [fixes #245]

This commit is contained in:
Eugene Kosov
2017-08-18 14:29:22 +03:00
parent 9714c4463d
commit 99baeaa951
10 changed files with 39 additions and 32 deletions

View File

@ -194,29 +194,29 @@ drop table t2;
end~~
call test_01('timestamp(6)', 'myisam', 'sys_end');
x y sys_end
3 4 2038-01-19 03:14:07.000000
2 3 2038-01-19 03:14:07.000000
40 33 2038-01-19 03:14:07.000000
3 4 2038-01-19 03:14:07.999999
2 3 2038-01-19 03:14:07.999999
40 33 2038-01-19 03:14:07.999999
call test_01('bigint unsigned', 'innodb', 'vtq_commit_ts(sys_end)');
x y vtq_commit_ts(sys_end)
3 4 2038-01-19 03:14:07.000000
2 3 2038-01-19 03:14:07.000000
40 33 2038-01-19 03:14:07.000000
3 4 2038-01-19 03:14:07.999999
2 3 2038-01-19 03:14:07.999999
40 33 2038-01-19 03:14:07.999999
call test_02('timestamp(6)', 'myisam', 'sys_end');
id x y sys_end
1 33 44 2038-01-19 03:14:07.000000
20 33 44 2038-01-19 03:14:07.000000
40 33 44 2038-01-19 03:14:07.000000
1 33 44 2038-01-19 03:14:07.999999
20 33 44 2038-01-19 03:14:07.999999
40 33 44 2038-01-19 03:14:07.999999
call test_02('bigint unsigned', 'innodb', 'vtq_commit_ts(sys_end)');
id x y vtq_commit_ts(sys_end)
1 33 44 2038-01-19 03:14:07.000000
20 33 44 2038-01-19 03:14:07.000000
40 33 44 2038-01-19 03:14:07.000000
1 33 44 2038-01-19 03:14:07.999999
20 33 44 2038-01-19 03:14:07.999999
40 33 44 2038-01-19 03:14:07.999999
call test_03('timestamp(6)', 'myisam', 'sys_end');
x y sys_end
8001 9001 2038-01-19 03:14:07.000000
1001 2001 2038-01-19 03:14:07.000000
1002 2002 2038-01-19 03:14:07.000000
8001 9001 2038-01-19 03:14:07.999999
1001 2001 2038-01-19 03:14:07.999999
1002 2002 2038-01-19 03:14:07.999999
x y
8001 9001
1001 2001
@ -225,9 +225,9 @@ drop table t1;
drop view vt1_1;
call test_03('bigint unsigned', 'innodb', 'vtq_commit_ts(sys_end)');
x y vtq_commit_ts(sys_end)
8001 9001 2038-01-19 03:14:07.000000
1001 2001 2038-01-19 03:14:07.000000
1002 2002 2038-01-19 03:14:07.000000
8001 9001 2038-01-19 03:14:07.999999
1001 2001 2038-01-19 03:14:07.999999
1002 2002 2038-01-19 03:14:07.999999
x y
8001 9001
1001 2001