Commit c8e003e4 authored by yiwenshao's avatar yiwenshao

delete comments

parent 4621b5dc
...@@ -379,7 +379,7 @@ next(lua_State *const L) { ...@@ -379,7 +379,7 @@ next(lua_State *const L) {
} }
switch (result_type){ switch (result_type){
case AbstractQueryExecutor::ResultType::QUERY_COME_AGAIN: { 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"); xlua_pushlstring(L, "again");
const auto &output = const auto &output =
std::get<1>(new_results)->extract<std::pair<bool, std::string> >(); std::get<1>(new_results)->extract<std::pair<bool, std::string> >();
...@@ -391,8 +391,8 @@ next(lua_State *const L) { ...@@ -391,8 +391,8 @@ next(lua_State *const L) {
return 5; return 5;
} }
case AbstractQueryExecutor::ResultType::QUERY_USE_RESULTS: { case AbstractQueryExecutor::ResultType::QUERY_USE_RESULTS: {
// the results of executing this query should be send directly /* the results of executing this query should be send directly
// back to the client back to the client. i.e show databases.*/
xlua_pushlstring(L, "query-results"); xlua_pushlstring(L, "query-results");
const auto &new_query = const auto &new_query =
std::get<1>(new_results)->extract<std::string>(); std::get<1>(new_results)->extract<std::string>();
...@@ -401,10 +401,10 @@ next(lua_State *const L) { ...@@ -401,10 +401,10 @@ next(lua_State *const L) {
return 5; return 5;
} }
case AbstractQueryExecutor::ResultType::RESULTS: { 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"); xlua_pushlstring(L, "results");
const auto &res = new_results.second->extract<ResType>(); const auto &res = new_results.second->extract<ResType>();
returnResultSet(L, res); // pushes 4 items on stack returnResultSet(L, res);
return 5; return 5;
} }
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment