-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enhance: show normal/child tables and show user/system databases #22978
Conversation
switch (mode) { | ||
case TAOS_CONN_MODE_BI: | ||
atomic_store_8(&pObj->biMode, value); | ||
break; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
其他值呢?
source/client/src/clientMain.c
Outdated
@@ -1829,3 +1831,23 @@ int taos_stmt_close(TAOS_STMT *stmt) { | |||
|
|||
return stmtClose(stmt); | |||
} | |||
|
|||
int taos_set_mode(TAOS* taos, int mode, int value) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
taos_set_conn_mode是不是更好一点?
source/client/src/clientImpl.c
Outdated
@@ -297,7 +297,7 @@ int32_t parseSql(SRequestObj* pRequest, bool topicQuery, SQuery** pQuery, SStmtC | |||
|
|||
int32_t execLocalCmd(SRequestObj* pRequest, SQuery* pQuery) { | |||
SRetrieveTableRsp* pRsp = NULL; | |||
int32_t code = qExecCommand(&pRequest->pTscObj->id, pRequest->pTscObj->sysInfo, pQuery->pRoot, &pRsp); | |||
int32_t code = qExecCommand(&pRequest->pTscObj->id, pRequest->pTscObj->sysInfo, pQuery->pRoot, &pRsp, pRequest->pTscObj->biMode); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个为什么没用原子读?
source/libs/command/src/command.c
Outdated
static int32_t setDescResultIntoDataBlock(bool sysInfoUser, SSDataBlock* pBlock, int32_t numOfRows, STableMeta* pMeta) { | ||
blockDataEnsureCapacity(pBlock, numOfRows); | ||
static int32_t setDescResultIntoDataBlock(bool sysInfoUser, SSDataBlock* pBlock, int32_t numOfRows, STableMeta* pMeta, int8_t biMode) { | ||
blockDataEnsureCapacity(pBlock, numOfRows + 1); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
biMode模式下加1
No description provided.