Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
fix MDEV-16026 MDEV-16481 embedded server results and rests
- Loading branch information
1 parent
83d7e4f
commit 1423cf5
Showing
5 changed files
with
62 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| create table t (a int) with system versioning; | ||
| set @before= UNIX_TIMESTAMP(now(6)); | ||
| insert into t values (1); | ||
| set @after= UNIX_TIMESTAMP(now(6)); | ||
| update t set a= 2; | ||
| set global system_versioning_asof= FROM_UNIXTIME(@after); | ||
| set system_versioning_asof= FROM_UNIXTIME(@after); | ||
| select * from t as nonempty; | ||
| a | ||
| 1 | ||
| connect subcon,127.0.0.1,root,,,$SERVER_MYPORT_1; | ||
| connection subcon; | ||
| select * from t as nonempty; | ||
| a | ||
| 1 | ||
| disconnect subcon; | ||
| connection default; | ||
| set global system_versioning_asof= FROM_UNIXTIME(@before); | ||
| select * from t as nonempty; | ||
| a | ||
| 1 | ||
| connect subcon,127.0.0.1,root,,,$SERVER_MYPORT_1; | ||
| connection subcon; | ||
| select * from t as empty; | ||
| a | ||
| disconnect subcon; | ||
| connection default; | ||
| drop table t; | ||
| set global system_versioning_asof= DEFAULT; | ||
| set system_versioning_asof= DEFAULT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| source include/not_embedded.inc; | ||
|
|
||
| create table t (a int) with system versioning; | ||
| set @before= UNIX_TIMESTAMP(now(6)); | ||
| insert into t values (1); | ||
| set @after= UNIX_TIMESTAMP(now(6)); | ||
| update t set a= 2; | ||
|
|
||
| set global system_versioning_asof= FROM_UNIXTIME(@after); | ||
| set system_versioning_asof= FROM_UNIXTIME(@after); | ||
| select * from t as nonempty; | ||
|
|
||
| --connect (subcon,127.0.0.1,root,,,$SERVER_MYPORT_1) | ||
| --connection subcon | ||
| select * from t as nonempty; | ||
| --disconnect subcon | ||
| --connection default | ||
|
|
||
| set global system_versioning_asof= FROM_UNIXTIME(@before); | ||
| select * from t as nonempty; | ||
|
|
||
| --connect (subcon,127.0.0.1,root,,,$SERVER_MYPORT_1) | ||
| --connection subcon | ||
| select * from t as empty; | ||
| --disconnect subcon | ||
| --connection default | ||
|
|
||
| drop table t; | ||
|
|
||
| set global system_versioning_asof= DEFAULT; | ||
| set system_versioning_asof= DEFAULT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters