Przeglądaj źródła

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

fix(tdengine): update the default template and fix a typo in the changes
lafirest 2 lat temu
rodzic
commit
6f21db2fe4

+ 1 - 1
apps/emqx_bridge_tdengine/src/emqx_bridge_tdengine.erl

@@ -23,7 +23,7 @@
 
 -define(DEFAULT_SQL, <<
     "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})"
 >>).
 
 %% -------------------------------------------------------------------------------------------------

+ 1 - 1
changes/ee/fix-11266.en.md

@@ -13,7 +13,7 @@ Fix and improve support for TDEngine `insert` syntax.
 
    `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: