Merge pull request #109 from plum-lihui/master

Fix the issure #102,  describe table bug when the table name use  capital letters
This commit is contained in:
slguan 2019-07-18 20:18:05 +08:00 committed by GitHub
commit 7c744dabd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -395,6 +395,10 @@ int32_t tscToSQLCmd(SSqlObj* pSql, struct SSqlInfo* pInfo) {
return TSDB_CODE_INVALID_SQL;
}
strdequote(pToken->z);
strtrim(pToken->z);
pToken->n = strlen(pToken->z);
if (setMeterID(pSql, pToken) != TSDB_CODE_SUCCESS) {
setErrMsg(pCmd, msg, tListLen(msg));
return TSDB_CODE_INVALID_SQL;
@ -4026,4 +4030,4 @@ int32_t parseCreateDBOptions(SCreateDBInfo* pCreateDbSql, SSqlCmd* pCmd) {
}
return TSDB_CODE_SUCCESS;
}
}