Merge pull request #195 from localvar/master

minor improvements to 'setErrMsg'
This commit is contained in:
slguan 2019-07-28 22:39:01 +08:00 committed by GitHub
commit d0e003b999
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 327 additions and 328 deletions

View File

@ -345,7 +345,7 @@ int32_t tsParseOneColumnData(SSchema* pSchema, char* value, int valuelen, char*
// todo merge the error msg function with tSQLParser
static void setErrMsg(char* msg, char* sql) {
char msgFormat[] = "near \"%s\" syntax error";
const char* msgFormat = "near \"%s\" syntax error";
const int32_t BACKWARD_CHAR_STEP = 15;
// only extract part of sql string,avoid too long sql string cause stack over flow

File diff suppressed because it is too large Load Diff