This commit is contained in:
WangXin 2019-07-24 17:15:55 +08:00
parent defb4739bd
commit 5827e62576
1 changed files with 1 additions and 1 deletions

View File

@ -715,7 +715,7 @@ static int32_t tscParseSqlForCreateTableOnDemand(char** sqlstr, SSqlObj* pSql) {
int32_t len = cend - cstart + 1;
if (cstart != NULL && createTable == true) {
/* move the column list to start position of the next accessed points */
memcpy(sql - len, cstart, len);
memmove(sql - len, cstart, len);
*sqlstr = sql - len;
} else {
*sqlstr = sql;