Commit 9ac5841e authored by yiwenshao's avatar yiwenshao

merge first and second

parent 21104153
...@@ -40,6 +40,7 @@ void parseResType(const ResType &rd) { ...@@ -40,6 +40,7 @@ void parseResType(const ResType &rd) {
} }
} }
/*
static void sp_next_second(const help_select & hs,ResType inRes){ static void sp_next_second(const help_select & hs,ResType inRes){
ps->safeCreateEmbeddedTHD(); ps->safeCreateEmbeddedTHD();
const ResType &resin = inRes; const ResType &resin = inRes;
...@@ -51,7 +52,7 @@ static void sp_next_second(const help_select & hs,ResType inRes){ ...@@ -51,7 +52,7 @@ static void sp_next_second(const help_select & hs,ResType inRes){
}catch(...){ }catch(...){
std::cout<<"second next error"<<std::endl; std::cout<<"second next error"<<std::endl;
} }
} }*/
static void sp_next_first(const help_select &hs){ static void sp_next_first(const help_select &hs){
ps->safeCreateEmbeddedTHD(); ps->safeCreateEmbeddedTHD();
...@@ -61,7 +62,9 @@ static void sp_next_first(const help_select &hs){ ...@@ -61,7 +62,9 @@ static void sp_next_first(const help_select &hs){
const std::string next_query = hs.query; const std::string next_query = hs.query;
rawMySQLReturnValue resRemote = executeAndGetResultRemote(globalConn,next_query); rawMySQLReturnValue resRemote = executeAndGetResultRemote(globalConn,next_query);
const auto &againGet = MygetResTypeFromLuaTable(false,&resRemote); const auto &againGet = MygetResTypeFromLuaTable(false,&resRemote);
sp_next_second(hs,againGet); //AbstractQueryExecutor::ResultType::RESULTS
const auto &res = decryptResults(againGet,hs.rmeta);
parseResType(res);
}catch(...){ }catch(...){
std::cout<<"first next error"<<std::endl; std::cout<<"first next error"<<std::endl;
} }
......
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