Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
1423cf5e
Commit
1423cf5e
authored
Jul 29, 2021
by
Oleksandr Byelkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix MDEV-16026 MDEV-16481 embedded server results and rests
parent
83d7e4fa
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
40 deletions
+62
-40
mysql-test/suite/sys_vars/r/sysvars_server_embedded.result
mysql-test/suite/sys_vars/r/sysvars_server_embedded.result
+1
-1
mysql-test/suite/versioning/r/sysvars-notembedded.result
mysql-test/suite/versioning/r/sysvars-notembedded.result
+30
-0
mysql-test/suite/versioning/r/sysvars.result
mysql-test/suite/versioning/r/sysvars.result
+0
-21
mysql-test/suite/versioning/t/sysvars-notembedded.test
mysql-test/suite/versioning/t/sysvars-notembedded.test
+31
-0
mysql-test/suite/versioning/t/sysvars.test
mysql-test/suite/versioning/t/sysvars.test
+0
-18
No files found.
mysql-test/suite/sys_vars/r/sysvars_server_embedded.result
View file @
1423cf5e
...
...
@@ -3279,7 +3279,7 @@ VARIABLE_COMMENT Default value for the FOR SYSTEM_TIME AS OF clause
NUMERIC_MIN_VALUE NULL
NUMERIC_MAX_VALUE NULL
NUMERIC_BLOCK_SIZE NULL
ENUM_VALUE_LIST
DEFAULT
ENUM_VALUE_LIST
NULL
READ_ONLY NO
COMMAND_LINE_ARGUMENT NULL
VARIABLE_NAME TABLE_DEFINITION_CACHE
...
...
mysql-test/suite/versioning/r/sysvars-notembedded.result
0 → 100644
View file @
1423cf5e
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;
mysql-test/suite/versioning/r/sysvars.result
View file @
1423cf5e
...
...
@@ -190,27 +190,6 @@ set system_versioning_asof= FROM_UNIXTIME(@after);
select * from t as nonempty;
a
1
set global 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;
# MDEV-16481: set global system_versioning_asof=sf() crashes in specific case
# Using global variable inside a stored function should not crash
create or replace function now_global() returns timestamp
...
...
mysql-test/suite/versioning/t/sysvars-notembedded.test
0 → 100644
View file @
1423cf5e
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
;
mysql-test/suite/versioning/t/sysvars.test
View file @
1423cf5e
...
...
@@ -137,24 +137,6 @@ select * from t as empty;
set
system_versioning_asof
=
FROM_UNIXTIME
(
@
after
);
select
*
from
t
as
nonempty
;
set
global
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
--
echo
# MDEV-16481: set global system_versioning_asof=sf() crashes in specific case
--
echo
# Using global variable inside a stored function should not crash
create
or
replace
function
now_global
()
returns
timestamp
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment