fix(tdengine): update the default template and the changelog
This commit is contained in:
parent
ab5fd1e5c3
commit
4f4a813f04
|
@ -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})"
|
||||||
>>).
|
>>).
|
||||||
|
|
||||||
%% -------------------------------------------------------------------------------------------------
|
%% -------------------------------------------------------------------------------------------------
|
||||||
|
|
|
@ -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:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue