Merge pull request #177 from xwangg/master

fix #174
This commit is contained in:
slguan 2019-07-25 14:19:21 +08:00 committed by GitHub
commit cc8f934129
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;