mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
SQL: thd_start_utime() fix [fixes #284]
This commit is contained in:
parent
8e193661d2
commit
17bd486f36
14 changed files with 27 additions and 14 deletions
|
@ -1,5 +1,6 @@
|
|||
set @@session.time_zone='+00:00';
|
||||
select ifnull(max(transaction_id), 0) into @start_trx_id from information_schema.innodb_vtq;
|
||||
set @test_start=now(6);
|
||||
|
||||
delimiter ~~;
|
||||
create procedure if not exists verify_vtq()
|
||||
|
@ -9,7 +10,7 @@ begin
|
|||
@i:= @i + 1 as No,
|
||||
transaction_id > 0 as A,
|
||||
commit_id > transaction_id as B,
|
||||
begin_timestamp > '1-1-1 0:0:0' as C,
|
||||
begin_timestamp > @test_start as C,
|
||||
commit_timestamp >= begin_timestamp as D
|
||||
from information_schema.innodb_vtq
|
||||
where transaction_id > @start_trx_id;
|
||||
|
|
|
@ -249,6 +249,7 @@ t CREATE TABLE `t` (
|
|||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 WITH SYSTEM VERSIONING
|
||||
set @@session.time_zone='+00:00';
|
||||
select ifnull(max(transaction_id), 0) into @start_trx_id from information_schema.innodb_vtq;
|
||||
set @test_start=now(6);
|
||||
create procedure if not exists verify_vtq()
|
||||
begin
|
||||
set @i= 0;
|
||||
|
@ -256,7 +257,7 @@ select
|
|||
@i:= @i + 1 as No,
|
||||
transaction_id > 0 as A,
|
||||
commit_id > transaction_id as B,
|
||||
begin_timestamp > '1-1-1 0:0:0' as C,
|
||||
begin_timestamp > @test_start as C,
|
||||
commit_timestamp >= begin_timestamp as D
|
||||
from information_schema.innodb_vtq
|
||||
where transaction_id > @start_trx_id;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
set @@session.time_zone='+00:00';
|
||||
select ifnull(max(transaction_id), 0) into @start_trx_id from information_schema.innodb_vtq;
|
||||
set @test_start=now(6);
|
||||
create procedure if not exists verify_vtq()
|
||||
begin
|
||||
set @i= 0;
|
||||
|
@ -7,7 +8,7 @@ select
|
|||
@i:= @i + 1 as No,
|
||||
transaction_id > 0 as A,
|
||||
commit_id > transaction_id as B,
|
||||
begin_timestamp > '1-1-1 0:0:0' as C,
|
||||
begin_timestamp > @test_start as C,
|
||||
commit_timestamp >= begin_timestamp as D
|
||||
from information_schema.innodb_vtq
|
||||
where transaction_id > @start_trx_id;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
set @@session.time_zone='+00:00';
|
||||
select ifnull(max(transaction_id), 0) into @start_trx_id from information_schema.innodb_vtq;
|
||||
set @test_start=now(6);
|
||||
create procedure if not exists verify_vtq()
|
||||
begin
|
||||
set @i= 0;
|
||||
|
@ -7,7 +8,7 @@ select
|
|||
@i:= @i + 1 as No,
|
||||
transaction_id > 0 as A,
|
||||
commit_id > transaction_id as B,
|
||||
begin_timestamp > '1-1-1 0:0:0' as C,
|
||||
begin_timestamp > @test_start as C,
|
||||
commit_timestamp >= begin_timestamp as D
|
||||
from information_schema.innodb_vtq
|
||||
where transaction_id > @start_trx_id;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
set @@session.time_zone='+00:00';
|
||||
select ifnull(max(transaction_id), 0) into @start_trx_id from information_schema.innodb_vtq;
|
||||
set @test_start=now(6);
|
||||
create procedure if not exists verify_vtq()
|
||||
begin
|
||||
set @i= 0;
|
||||
|
@ -7,7 +8,7 @@ select
|
|||
@i:= @i + 1 as No,
|
||||
transaction_id > 0 as A,
|
||||
commit_id > transaction_id as B,
|
||||
begin_timestamp > '1-1-1 0:0:0' as C,
|
||||
begin_timestamp > @test_start as C,
|
||||
commit_timestamp >= begin_timestamp as D
|
||||
from information_schema.innodb_vtq
|
||||
where transaction_id > @start_trx_id;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
set @@session.time_zone='+00:00';
|
||||
select ifnull(max(transaction_id), 0) into @start_trx_id from information_schema.innodb_vtq;
|
||||
set @test_start=now(6);
|
||||
create procedure if not exists verify_vtq()
|
||||
begin
|
||||
set @i= 0;
|
||||
|
@ -7,7 +8,7 @@ select
|
|||
@i:= @i + 1 as No,
|
||||
transaction_id > 0 as A,
|
||||
commit_id > transaction_id as B,
|
||||
begin_timestamp > '1-1-1 0:0:0' as C,
|
||||
begin_timestamp > @test_start as C,
|
||||
commit_timestamp >= begin_timestamp as D
|
||||
from information_schema.innodb_vtq
|
||||
where transaction_id > @start_trx_id;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
set @@session.time_zone='+00:00';
|
||||
select ifnull(max(transaction_id), 0) into @start_trx_id from information_schema.innodb_vtq;
|
||||
set @test_start=now(6);
|
||||
create procedure if not exists verify_vtq()
|
||||
begin
|
||||
set @i= 0;
|
||||
|
@ -7,7 +8,7 @@ select
|
|||
@i:= @i + 1 as No,
|
||||
transaction_id > 0 as A,
|
||||
commit_id > transaction_id as B,
|
||||
begin_timestamp > '1-1-1 0:0:0' as C,
|
||||
begin_timestamp > @test_start as C,
|
||||
commit_timestamp >= begin_timestamp as D
|
||||
from information_schema.innodb_vtq
|
||||
where transaction_id > @start_trx_id;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
set @@session.time_zone='+00:00';
|
||||
select ifnull(max(transaction_id), 0) into @start_trx_id from information_schema.innodb_vtq;
|
||||
set @test_start=now(6);
|
||||
create procedure if not exists verify_vtq()
|
||||
begin
|
||||
set @i= 0;
|
||||
|
@ -7,7 +8,7 @@ select
|
|||
@i:= @i + 1 as No,
|
||||
transaction_id > 0 as A,
|
||||
commit_id > transaction_id as B,
|
||||
begin_timestamp > '1-1-1 0:0:0' as C,
|
||||
begin_timestamp > @test_start as C,
|
||||
commit_timestamp >= begin_timestamp as D
|
||||
from information_schema.innodb_vtq
|
||||
where transaction_id > @start_trx_id;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
set @@session.time_zone='+00:00';
|
||||
select ifnull(max(transaction_id), 0) into @start_trx_id from information_schema.innodb_vtq;
|
||||
set @test_start=now(6);
|
||||
create procedure if not exists verify_vtq()
|
||||
begin
|
||||
set @i= 0;
|
||||
|
@ -7,7 +8,7 @@ select
|
|||
@i:= @i + 1 as No,
|
||||
transaction_id > 0 as A,
|
||||
commit_id > transaction_id as B,
|
||||
begin_timestamp > '1-1-1 0:0:0' as C,
|
||||
begin_timestamp > @test_start as C,
|
||||
commit_timestamp >= begin_timestamp as D
|
||||
from information_schema.innodb_vtq
|
||||
where transaction_id > @start_trx_id;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
set @@session.time_zone='+00:00';
|
||||
select ifnull(max(transaction_id), 0) into @start_trx_id from information_schema.innodb_vtq;
|
||||
set @test_start=now(6);
|
||||
create procedure if not exists verify_vtq()
|
||||
begin
|
||||
set @i= 0;
|
||||
|
@ -7,7 +8,7 @@ select
|
|||
@i:= @i + 1 as No,
|
||||
transaction_id > 0 as A,
|
||||
commit_id > transaction_id as B,
|
||||
begin_timestamp > '1-1-1 0:0:0' as C,
|
||||
begin_timestamp > @test_start as C,
|
||||
commit_timestamp >= begin_timestamp as D
|
||||
from information_schema.innodb_vtq
|
||||
where transaction_id > @start_trx_id;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
set @@session.time_zone='+00:00';
|
||||
select ifnull(max(transaction_id), 0) into @start_trx_id from information_schema.innodb_vtq;
|
||||
set @test_start=now(6);
|
||||
create procedure if not exists verify_vtq()
|
||||
begin
|
||||
set @i= 0;
|
||||
|
@ -7,7 +8,7 @@ select
|
|||
@i:= @i + 1 as No,
|
||||
transaction_id > 0 as A,
|
||||
commit_id > transaction_id as B,
|
||||
begin_timestamp > '1-1-1 0:0:0' as C,
|
||||
begin_timestamp > @test_start as C,
|
||||
commit_timestamp >= begin_timestamp as D
|
||||
from information_schema.innodb_vtq
|
||||
where transaction_id > @start_trx_id;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
set @@session.time_zone='+00:00';
|
||||
select ifnull(max(transaction_id), 0) into @start_trx_id from information_schema.innodb_vtq;
|
||||
set @test_start=now(6);
|
||||
create procedure if not exists verify_vtq()
|
||||
begin
|
||||
set @i= 0;
|
||||
|
@ -7,7 +8,7 @@ select
|
|||
@i:= @i + 1 as No,
|
||||
transaction_id > 0 as A,
|
||||
commit_id > transaction_id as B,
|
||||
begin_timestamp > '1-1-1 0:0:0' as C,
|
||||
begin_timestamp > @test_start as C,
|
||||
commit_timestamp >= begin_timestamp as D
|
||||
from information_schema.innodb_vtq
|
||||
where transaction_id > @start_trx_id;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
set @@session.time_zone='+00:00';
|
||||
select ifnull(max(transaction_id), 0) into @start_trx_id from information_schema.innodb_vtq;
|
||||
set @test_start=now(6);
|
||||
create procedure if not exists verify_vtq()
|
||||
begin
|
||||
set @i= 0;
|
||||
|
@ -7,7 +8,7 @@ select
|
|||
@i:= @i + 1 as No,
|
||||
transaction_id > 0 as A,
|
||||
commit_id > transaction_id as B,
|
||||
begin_timestamp > '1-1-1 0:0:0' as C,
|
||||
begin_timestamp > @test_start as C,
|
||||
commit_timestamp >= begin_timestamp as D
|
||||
from information_schema.innodb_vtq
|
||||
where transaction_id > @start_trx_id;
|
||||
|
|
|
@ -4644,7 +4644,7 @@ extern "C" time_t thd_start_time(const MYSQL_THD thd)
|
|||
of the current query. */
|
||||
extern "C" unsigned long long thd_start_utime(const MYSQL_THD thd)
|
||||
{
|
||||
return thd->start_utime;
|
||||
return thd->start_time * 1000000 + thd->start_time_sec_part;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue