Commit ccab1d1d by guanghui.cui

tab替换为4个空格

parent a8033ca2
...@@ -38,7 +38,7 @@ void parseJson(const char* json) ...@@ -38,7 +38,7 @@ void parseJson(const char* json)
// 注意GetParseError()返回的是一个rapidjson::ParseErrorCode类型的枚举值 // 注意GetParseError()返回的是一个rapidjson::ParseErrorCode类型的枚举值
// 使用函数rapidjson::GetParseError_En()得到错误码的字符串说明,这里的En为English简写 // 使用函数rapidjson::GetParseError_En()得到错误码的字符串说明,这里的En为English简写
// 函数GetErrorOffset()返回出错发生的位置 // 函数GetErrorOffset()返回出错发生的位置
//LOG_ERROR("TakeawayOrder JSON parse error: (%d:%d)", document.GetParseError(), document.GetErrorOffset()) LOG(ERROR)<<"JSON parse error:"<<document.GetParseError()<<":"<<document.GetErrorOffset();
} }
else else
{ {
......
...@@ -99,10 +99,7 @@ bool SQLite::isTableExist(sqlite3 *sqDb, std::string strTableName) ...@@ -99,10 +99,7 @@ bool SQLite::isTableExist(sqlite3 *sqDb, std::string strTableName)
int SQLite::isRecordExist(std::string strTable,std::string strKey) int SQLite::isRecordExist(std::string strTable,std::string strKey)
{ {
char* lpSql = new char[BUFFER_SIZE]; char* lpSql = new char[BUFFER_SIZE];
sprintf_s(lpSql,BUFFER_SIZE, sprintf_s(lpSql,BUFFER_SIZE, "select * from %s where trans_id = '%s'",strTable.c_str(),strKey.c_str());
"select * from %s where trans_id = '%s'",
strTable.c_str(),
strKey.c_str());
char** pResult; char** pResult;
int nRow = 0; int nRow = 0;
int nCol = 0; int nCol = 0;
......
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