Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
Practical-Cryptdb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zhaozhen
Practical-Cryptdb
Commits
1fda375c
Commit
1fda375c
authored
Jan 07, 2018
by
yiwenshao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make verify.sh strong
parent
c80550bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
10 deletions
+4
-10
change_test.cc
main/change_test.cc
+4
-3
verify.sh
verify.sh
+0
-7
No files found.
main/change_test.cc
View file @
1fda375c
...
@@ -5,14 +5,15 @@ using std::vector;
...
@@ -5,14 +5,15 @@ using std::vector;
vector
<
string
>
queries
{
vector
<
string
>
queries
{
"show databases;"
,
"show databases;"
,
"create database if not exists
tdb2
;"
,
"create database if not exists
verify
;"
,
"use
tdb2
;"
,
"use
verify
;"
,
"create table if not exists student(id integer, name varchar(50));"
,
"create table if not exists student(id integer, name varchar(50));"
,
"insert into student values(1,'shao'),(2,'xiaocai'),(3,'nans'),(4,'hehe'),(5,'oo');"
,
"insert into student values(1,'shao'),(2,'xiaocai'),(3,'nans'),(4,'hehe'),(5,'oo');"
,
"select * from student;"
,
"select * from student;"
,
"select id from student;"
,
"select id from student;"
,
"select name from student;"
,
"select name from student;"
,
"select sum(id) from student;"
"select sum(id) from student;"
,
"drop database if exists verify"
};
};
int
int
...
...
verify.sh
View file @
1fda375c
mysql
-uroot
-pletmein
-h127
.0.0.1
-e
"drop database if exists tpcc1000"
mysql
-uroot
-pletmein
-h127
.0.0.1
-e
"drop database if exists tdb"
mysql
-uroot
-pletmein
-h127
.0.0.1
-e
"drop database if exists tdb2"
mysql
-uroot
-pletmein
-h127
.0.0.1
-e
"drop database if exists tdb3"
rm
-rf
./shadow/
*
##running this twice will caurse troubles because of the metadata mismatch
./obj/main/change_test
./obj/main/change_test
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