diff --git a/src/client/src/tscLocal.c b/src/client/src/tscLocal.c index bb3792850620b0a07ca599cef42906a6854a368a..4da1ecd2a97bf54c5c89619ecbdff870afc0d67d 100644 --- a/src/client/src/tscLocal.c +++ b/src/client/src/tscLocal.c @@ -652,7 +652,7 @@ static int32_t tscRebuildDDLForNormalTable(SSqlObj *pSql, const char *tableName, SSchema *pSchema = tscGetTableSchema(pMeta); char *result = ddl; - sprintf(result, "create table `%s` (", tableName); + sprintf(result, "CREATE TABLE `%s` (", tableName); for (int32_t i = 0; i < numOfRows; ++i) { uint8_t type = pSchema[i].type; if (type == TSDB_DATA_TYPE_BINARY || type == TSDB_DATA_TYPE_NCHAR) { @@ -679,7 +679,7 @@ static int32_t tscRebuildDDLForSuperTable(SSqlObj *pSql, const char *tableName, int32_t totalRows = numOfRows + tscGetNumOfTags(pMeta); SSchema *pSchema = tscGetTableSchema(pMeta); - sprintf(result, "create table `%s` (", tableName); + sprintf(result, "CREATE TABLE `%s` (", tableName); for (int32_t i = 0; i < numOfRows; ++i) { uint8_t type = pSchema[i].type; if (type == TSDB_DATA_TYPE_BINARY || type == TSDB_DATA_TYPE_NCHAR) {