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
36590b33
Commit
36590b33
authored
Jul 01, 2020
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test of usage of two instances of a cached table
parent
ba731bdc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
50 additions
and
0 deletions
+50
-0
mysql-test/suite/columnstore_cache/basic.result
mysql-test/suite/columnstore_cache/basic.result
+29
-0
mysql-test/suite/columnstore_cache/basic.test
mysql-test/suite/columnstore_cache/basic.test
+21
-0
No files found.
mysql-test/suite/columnstore_cache/basic.result
View file @
36590b33
...
@@ -39,3 +39,32 @@ select count(*), sum(a) from t1;
...
@@ -39,3 +39,32 @@ select count(*), sum(a) from t1;
count(*) sum(a)
count(*) sum(a)
18 1332
18 1332
drop table t1,t2,t3;
drop table t1,t2,t3;
create table t1 (a int not null , b varchar(10) not null) engine=columnstore_cache;
insert into t1 values (1,"1"),(2,"2"),(3,"3");
lock table t1 read;
select * from t1;
a b
1 1
2 2
3 3
connect con1, localhost, root,,;
select * from t1;
a b
1 1
2 2
3 3
insert into t1 values (11,"1"),(12,"2"),(13,"3");;
connection default;
unlock tables;
connection con1;
disconnect con1;
connection default;
select * from t1;
a b
1 1
2 2
3 3
11 1
12 2
13 3
drop table t1;
mysql-test/suite/columnstore_cache/basic.test
View file @
36590b33
...
@@ -39,3 +39,24 @@ select count(*), sum(a) from t1;
...
@@ -39,3 +39,24 @@ select count(*), sum(a) from t1;
insert
into
t1
select
*
from
t1
as
t4
;
insert
into
t1
select
*
from
t1
as
t4
;
select
count
(
*
),
sum
(
a
)
from
t1
;
select
count
(
*
),
sum
(
a
)
from
t1
;
drop
table
t1
,
t2
,
t3
;
drop
table
t1
,
t2
,
t3
;
#
# Test usage of two instances of a table
#
create
table
t1
(
a
int
not
null
,
b
varchar
(
10
)
not
null
)
engine
=
columnstore_cache
;
insert
into
t1
values
(
1
,
"1"
),(
2
,
"2"
),(
3
,
"3"
);
lock
table
t1
read
;
select
*
from
t1
;
--
connect
(
con1
,
localhost
,
root
,,)
select
*
from
t1
;
--
send
insert
into
t1
values
(
11
,
"1"
),(
12
,
"2"
),(
13
,
"3"
);
--
connection
default
unlock
tables
;
--
connection
con1
reap
;
--
disconnect
con1
--
connection
default
select
*
from
t1
;
drop
table
t1
;
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