diff --git a/apps/emqx_bridge_tdengine/src/emqx_bridge_tdengine.erl b/apps/emqx_bridge_tdengine/src/emqx_bridge_tdengine.erl index 0b618487d..da170e943 100644 --- a/apps/emqx_bridge_tdengine/src/emqx_bridge_tdengine.erl +++ b/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})" >>). %% ------------------------------------------------------------------------------------------------- diff --git a/changes/ee/fix-11266.en.md b/changes/ee/fix-11266.en.md index 345b24036..161982a5b 100644 --- a/changes/ee/fix-11266.en.md +++ b/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: