提交 a9758133 编写于 作者: G Ganlin Zhao

[TD-10700]<enhance>: fixed uppercase tag in escape quote issue

上级 49343cfe
...@@ -629,10 +629,6 @@ static bool hasAdditionalErrorInfo(int32_t code, SSqlCmd *pCmd) { ...@@ -629,10 +629,6 @@ static bool hasAdditionalErrorInfo(int32_t code, SSqlCmd *pCmd) {
return false; return false;
} }
if (pCmd->payload == NULL) {
return false;
}
size_t len = strlen(pCmd->payload); size_t len = strlen(pCmd->payload);
char *z = NULL; char *z = NULL;
......
...@@ -803,6 +803,7 @@ class TDTestCase: ...@@ -803,6 +803,7 @@ class TDTestCase:
"type": "nchar" "type": "nchar"
}, },
"tags": { "tags": {
"id": "KEY",
"456": { "456": {
"value": true, "value": true,
"type": "bool" "type": "bool"
...@@ -837,6 +838,9 @@ class TDTestCase: ...@@ -837,6 +838,9 @@ class TDTestCase:
tdSql.query("describe `stable`") tdSql.query("describe `stable`")
tdSql.checkRows(8) tdSql.checkRows(8)
tdSql.query("select * from `key`")
tdSql.checkRows(1)
def stop(self): def stop(self):
tdSql.close() tdSql.close()
......
...@@ -316,7 +316,7 @@ class TDTestCase: ...@@ -316,7 +316,7 @@ class TDTestCase:
"double 1626006833610ms 2 id=for 456=true int=true double=false into=1 from=2 !@#$.%^&*()=false", "double 1626006833610ms 2 id=for 456=true int=true double=false into=1 from=2 !@#$.%^&*()=false",
"from 1626006833610ms 2 id=!@#.^& 456=true int=true double=false into=1 from=2 !@#$.%^&*()=false", "from 1626006833610ms 2 id=!@#.^& 456=true int=true double=false into=1 from=2 !@#$.%^&*()=false",
"!@#$.%^&*() 1626006833610ms 2 id=none 456=true int=true double=false into=1 from=2 !@#$.%^&*()=false", "!@#$.%^&*() 1626006833610ms 2 id=none 456=true int=true double=false into=1 from=2 !@#$.%^&*()=false",
"STABLE 1626006833610ms 2 id=!@#.^& 456=true int=true double=false TAG=1 FROM=2 COLUMN=false", "STABLE 1626006833610ms 2 id=KEY 456=true int=true double=false TAG=1 FROM=2 COLUMN=false",
] ]
code = self._conn.schemaless_insert(lines4_1, TDSmlProtocolType.TELNET.value, TDSmlTimestampType.NOT_CONFIGURED.value) code = self._conn.schemaless_insert(lines4_1, TDSmlProtocolType.TELNET.value, TDSmlTimestampType.NOT_CONFIGURED.value)
...@@ -355,6 +355,9 @@ class TDTestCase: ...@@ -355,6 +355,9 @@ class TDTestCase:
tdSql.query('select * from `none`') tdSql.query('select * from `none`')
tdSql.checkRows(1) tdSql.checkRows(1)
tdSql.query('select * from `key`')
tdSql.checkRows(1)
def stop(self): def stop(self):
tdSql.close() tdSql.close()
tdLog.success("%s successfully executed" % __file__) tdLog.success("%s successfully executed" % __file__)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册