Merge pull request #11286 from lafirest/fix/td-template

fix(tdengine): update the default template and fix a typo in the changes
This commit is contained in:
lafirest 2023-07-18 19:05:19 +08:00 committed by GitHub
commit 6f21db2fe4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@
-define(DEFAULT_SQL, << -define(DEFAULT_SQL, <<
"insert into t_mqtt_msg(ts, msgid, mqtt_topic, qos, payload, arrived) " "insert into t_mqtt_msg(ts, msgid, mqtt_topic, qos, payload, arrived) "
"values (${ts}, ${id}, ${topic}, ${qos}, ${payload}, ${timestamp})" "values (${ts}, '${id}', '${topic}', ${qos}, '${payload}', ${timestamp})"
>>). >>).
%% ------------------------------------------------------------------------------------------------- %% -------------------------------------------------------------------------------------------------

View File

@ -13,7 +13,7 @@ Fix and improve support for TDEngine `insert` syntax.
`insert into table_${topic} values (${ts}, '${id}', '${topic}')` `insert into table_${topic} values (${ts}, '${id}', '${topic}')`
Note: This is a breaking change, at the former, the string-type values are automatically quoted, bu now, you should manually quote them. Note: This is a breaking change. Previously the values of string type were quoted automatically, but now they must be quoted explicitly.
For example: For example: