未验证 提交 02de8763 编写于 作者: T Tao Liu 提交者: GitHub

Merge pull request #1678 from taosdata/feature/lihui

[TD-175]
...@@ -1945,6 +1945,7 @@ static int16_t doGetColumnIndex(SQueryInfo* pQueryInfo, int32_t index, SSQLToken ...@@ -1945,6 +1945,7 @@ static int16_t doGetColumnIndex(SQueryInfo* pQueryInfo, int32_t index, SSQLToken
if (strncasecmp(pSchema[i].name, pToken->z, pToken->n) == 0) { if (strncasecmp(pSchema[i].name, pToken->z, pToken->n) == 0) {
columnIndex = i; columnIndex = i;
break;
} }
} }
......
...@@ -4021,7 +4021,7 @@ bool normalizedFirstQueryRange(bool dataInDisk, bool dataInCache, STableQuerySup ...@@ -4021,7 +4021,7 @@ bool normalizedFirstQueryRange(bool dataInDisk, bool dataInCache, STableQuerySup
} }
// needs the data before the begin timestamp of query time window // needs the data before the begin timestamp of query time window
if (nextKey != pQuery->skey) { if ((nextKey != pQuery->skey) && (!isPointInterpoQuery(pQuery))) {
if (!pRuntimeEnv->hasTimeWindow) { if (!pRuntimeEnv->hasTimeWindow) {
pQuery->skey = nextKey; // change the query skey pQuery->skey = nextKey; // change the query skey
pQuery->lastKey = pQuery->skey; pQuery->lastKey = pQuery->skey;
......
...@@ -77,7 +77,7 @@ void taosUnLockNote(int fd, taosNoteInfo * pNote) ...@@ -77,7 +77,7 @@ void taosUnLockNote(int fd, taosNoteInfo * pNote)
void *taosThreadToOpenNewNote(void *param) void *taosThreadToOpenNewNote(void *param)
{ {
char name[NOTE_FILE_NAME_LEN]; char name[NOTE_FILE_NAME_LEN + 16];
taosNoteInfo * pNote = (taosNoteInfo *)param; taosNoteInfo * pNote = (taosNoteInfo *)param;
pNote->taosNoteFlag ^= 1; pNote->taosNoteFlag ^= 1;
...@@ -170,7 +170,7 @@ void taosGetNoteName(char *fn, taosNoteInfo * pNote) ...@@ -170,7 +170,7 @@ void taosGetNoteName(char *fn, taosNoteInfo * pNote)
int taosOpenNoteWithMaxLines(char *fn, int maxLines, int maxNoteNum, taosNoteInfo * pNote) int taosOpenNoteWithMaxLines(char *fn, int maxLines, int maxNoteNum, taosNoteInfo * pNote)
{ {
char name[NOTE_FILE_NAME_LEN] = "\0"; char name[NOTE_FILE_NAME_LEN + 16] = "\0";
struct stat notestat0, notestat1; struct stat notestat0, notestat1;
int size; int size;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册