From b19640126d7ccf2542ab50a5cf4c1726b2925d00 Mon Sep 17 00:00:00 2001 From: Minglei Jin Date: Tue, 1 Mar 2022 16:28:52 +0800 Subject: [PATCH] [TS-1258](tsc): fix show create with normal & stable to uppercase --- src/client/src/tscLocal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/src/tscLocal.c b/src/client/src/tscLocal.c index bb37928506..4da1ecd2a9 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) { -- GitLab