[td-225] fix bugs for tags filter
This commit is contained in:
parent
f55b05856b
commit
3189c3ddd4
|
@ -598,7 +598,7 @@ static void tQueryIndexColumn(SSkipList* pSkipList, tQueryInfo* pQueryInfo, SArr
|
||||||
SSkipListNode* pNode = tSkipListIterGet(iter);
|
SSkipListNode* pNode = tSkipListIterGet(iter);
|
||||||
|
|
||||||
if (comp) {
|
if (comp) {
|
||||||
ret = func(SL_GET_NODE_KEY(pSkipList, pNode), cond.end->v);
|
ret = pQueryInfo->compare(SL_GET_NODE_KEY(pSkipList, pNode), cond.end->v);
|
||||||
assert(ret <= 0);
|
assert(ret <= 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -267,7 +267,9 @@ static pthread_once_t keywordsHashTableInit = PTHREAD_ONCE_INIT;
|
||||||
int tSQLKeywordCode(const char* z, int n) {
|
int tSQLKeywordCode(const char* z, int n) {
|
||||||
pthread_once(&keywordsHashTableInit, doInitKeywordsTable);
|
pthread_once(&keywordsHashTableInit, doInitKeywordsTable);
|
||||||
|
|
||||||
char key[128] = {0};
|
char key[512] = {0};
|
||||||
|
assert(tListLen(key) >= n);
|
||||||
|
|
||||||
for (int32_t j = 0; j < n; ++j) {
|
for (int32_t j = 0; j < n; ++j) {
|
||||||
if (z[j] >= 'a' && z[j] <= 'z') {
|
if (z[j] >= 'a' && z[j] <= 'z') {
|
||||||
key[j] = (char)(z[j] & 0xDF); // touppercase and set the null-terminated
|
key[j] = (char)(z[j] & 0xDF); // touppercase and set the null-terminated
|
||||||
|
|
Loading…
Reference in New Issue