提交 335867cd 编写于 作者: dengyihao's avatar dengyihao

change gen rule

上级 dea0e3c2
......@@ -282,7 +282,7 @@ void veriry_stmt(TAOS* taos) {
int32_t* bin_len = malloc(sizeof(int32_t) * 10);
int32_t* blob_len = malloc(sizeof(int32_t) * 10);
TAOS_STMT* stmt = taos_stmt_init(taos);
TAOS_STMT* stmt = taos_stmt_init_with_reqid(taos, genReqid());
TAOS_MULTI_BIND params[10];
char is_null[10] = {0};
......
......@@ -286,7 +286,7 @@ void *createRequest(uint64_t connId, int32_t type, int64_t reqid) {
}
pRequest->resType = RES_TYPE__QUERY;
pRequest->requestId = reqid <= 0 ? generateRequestId() : reqid;
pRequest->requestId = reqid == 0 ? generateRequestId() : reqid;
pRequest->metric.start = taosGetTimestampUs();
pRequest->body.resInfo.convertUcs4 = true; // convert ucs4 by default
......
......@@ -14,7 +14,7 @@ static int32_t stmtCreateRequest(STscStmt* pStmt) {
if (pStmt->exec.pRequest == NULL) {
code = buildRequest(pStmt->taos->id, pStmt->sql.sqlStr, pStmt->sql.sqlLen, NULL, false, &pStmt->exec.pRequest,
pStmt->reqid);
if (pStmt->reqid > 0) {
if (pStmt->reqid != 0) {
pStmt->reqid++;
}
if (TSDB_CODE_SUCCESS == code) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册