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
21104153
Commit
21104153
authored
Jan 17, 2018
by
yiwenshao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove more
parent
ee6f5ee6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
try_select_data.cc
debug/try_select_data.cc
+6
-8
No files found.
debug/try_select_data.cc
View file @
21104153
...
...
@@ -40,13 +40,12 @@ void parseResType(const ResType &rd) {
}
}
static
void
sp_next_second
(
std
::
string
db
,
std
::
string
query
,
const
help_select
&
hs
,
ResType
inRes
){
static
void
sp_next_second
(
const
help_select
&
hs
,
ResType
inRes
){
ps
->
safeCreateEmbeddedTHD
();
const
ResType
&
resin
=
inRes
;
try
{
//AbstractQueryExecutor::ResultType::RESULTS
NextParams
nparams
(
*
ps
,
db
,
query
);
nparams
.
ps
.
getSchemaCache
().
updateStaleness
(
nparams
.
ps
.
getEConn
(),
false
);
ps
->
getSchemaCache
().
updateStaleness
(
ps
->
getEConn
(),
false
);
const
auto
&
res
=
decryptResults
(
resin
,
hs
.
rmeta
);
parseResType
(
res
);
}
catch
(...){
...
...
@@ -54,16 +53,15 @@ static void sp_next_second(std::string db, std::string query,const help_select &
}
}
static
void
sp_next_first
(
std
::
string
db
,
std
::
string
query
,
const
help_select
&
hs
){
static
void
sp_next_first
(
const
help_select
&
hs
){
ps
->
safeCreateEmbeddedTHD
();
try
{
//AbstractQueryExecutor::ResultType::QUERY_COME_AGAIN
NextParams
nparams
(
*
ps
,
db
,
query
);
nparams
.
ps
.
getSchemaCache
().
updateStaleness
(
nparams
.
ps
.
getEConn
(),
false
);
ps
->
getSchemaCache
().
updateStaleness
(
ps
->
getEConn
(),
false
);
const
std
::
string
next_query
=
hs
.
query
;
rawMySQLReturnValue
resRemote
=
executeAndGetResultRemote
(
globalConn
,
next_query
);
const
auto
&
againGet
=
MygetResTypeFromLuaTable
(
false
,
&
resRemote
);
sp_next_second
(
db
,
query
,
hs
,
againGet
);
sp_next_second
(
hs
,
againGet
);
}
catch
(...){
std
::
cout
<<
"first next error"
<<
std
::
endl
;
}
...
...
@@ -275,7 +273,7 @@ static void testCreateTableHandler(std::string query,std::string db="tdb"){
my_gather_select
(
analysis
,
lex
);
help_select
hs
=
my_rewrite_select
(
analysis
,
lex
);
//QueryRewrite *qr = new QueryRewrite(QueryRewrite(true, analysis.rmeta, analysis.kill_zone, executor));
sp_next_first
(
db
,
query
,
hs
);
sp_next_first
(
hs
);
}
int
...
...
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