提交 403e4201 编写于 作者: wmmhello's avatar wmmhello

remove the limit of where length

上级 e01e16f0
...@@ -4014,10 +4014,6 @@ static int32_t getColQueryCondExpr(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, tSqlEx ...@@ -4014,10 +4014,6 @@ static int32_t getColQueryCondExpr(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, tSqlEx
// TODO: more error handling // TODO: more error handling
} END_TRY } END_TRY
if (tbufTell(&bw) >= TSDB_MAX_WHERE_LEN ) {
return invalidOperationMsg(tscGetErrorMsgPayload(pCmd), "where condition string is too long");
}
// add to required table column list // add to required table column list
STableMetaInfo* pTableMetaInfo = tscGetMetaInfo(pQueryInfo, i); STableMetaInfo* pTableMetaInfo = tscGetMetaInfo(pQueryInfo, i);
int64_t uid = pTableMetaInfo->pTableMeta->id.uid; int64_t uid = pTableMetaInfo->pTableMeta->id.uid;
...@@ -5203,10 +5199,6 @@ static int32_t getTagQueryCondExpr(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, SCondE ...@@ -5203,10 +5199,6 @@ static int32_t getTagQueryCondExpr(SSqlCmd* pCmd, SQueryInfo* pQueryInfo, SCondE
// TODO: more error handling // TODO: more error handling
} END_TRY } END_TRY
if (tbufTell(&bw) >= TSDB_MAX_WHERE_LEN ) {
return invalidOperationMsg(tscGetErrorMsgPayload(pCmd), "where condition string is too long");
}
// add to required table column list // add to required table column list
STableMetaInfo* pTableMetaInfo = tscGetMetaInfo(pQueryInfo, i); STableMetaInfo* pTableMetaInfo = tscGetMetaInfo(pQueryInfo, i);
int64_t uid = pTableMetaInfo->pTableMeta->id.uid; int64_t uid = pTableMetaInfo->pTableMeta->id.uid;
......
...@@ -218,7 +218,6 @@ do { \ ...@@ -218,7 +218,6 @@ do { \
#define TSDB_MAX_TAGS_LEN 16384 #define TSDB_MAX_TAGS_LEN 16384
#define TSDB_MAX_TAGS 128 #define TSDB_MAX_TAGS 128
#define TSDB_MAX_TAG_CONDITIONS 1024 #define TSDB_MAX_TAG_CONDITIONS 1024
#define TSDB_MAX_WHERE_LEN 65535
#define TSDB_AUTH_LEN 16 #define TSDB_AUTH_LEN 16
#define TSDB_KEY_LEN 16 #define TSDB_KEY_LEN 16
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册