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
c8e003e4
Commit
c8e003e4
authored
Dec 26, 2017
by
yiwenshao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete comments
parent
4621b5dc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
ConnectWrapper.cc
mysqlproxy/ConnectWrapper.cc
+5
-5
No files found.
mysqlproxy/ConnectWrapper.cc
View file @
c8e003e4
...
...
@@ -379,7 +379,7 @@ next(lua_State *const L) {
}
switch
(
result_type
){
case
AbstractQueryExecutor
:
:
ResultType
::
QUERY_COME_AGAIN
:
{
/
/ more to do before we have the client's results
/
*more to do before we have the client's results. i.e the first round of select * */
xlua_pushlstring
(
L
,
"again"
);
const
auto
&
output
=
std
::
get
<
1
>
(
new_results
)
->
extract
<
std
::
pair
<
bool
,
std
::
string
>
>
();
...
...
@@ -391,8 +391,8 @@ next(lua_State *const L) {
return
5
;
}
case
AbstractQueryExecutor
:
:
ResultType
::
QUERY_USE_RESULTS
:
{
/
/
the results of executing this query should be send directly
// back to the client
/
*
the results of executing this query should be send directly
back to the client. i.e show databases.*/
xlua_pushlstring
(
L
,
"query-results"
);
const
auto
&
new_query
=
std
::
get
<
1
>
(
new_results
)
->
extract
<
std
::
string
>
();
...
...
@@ -401,10 +401,10 @@ next(lua_State *const L) {
return
5
;
}
case
AbstractQueryExecutor
:
:
ResultType
::
RESULTS
:
{
/
/ ready to return results to the client
/
* ready to return results to the client. i.e the second round of select * */
xlua_pushlstring
(
L
,
"results"
);
const
auto
&
res
=
new_results
.
second
->
extract
<
ResType
>
();
returnResultSet
(
L
,
res
);
// pushes 4 items on stack
returnResultSet
(
L
,
res
);
return
5
;
}
default:
...
...
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