firest 2 лет назад
Родитель
Сommit
66baea2ba0
1 измененных файлов с 20 добавлено и 0 удалено
  1. 20 0
      changes/ee/fix-11266.en.md

+ 20 - 0
changes/ee/fix-11266.en.md

@@ -0,0 +1,20 @@
+Fix and improve supports for TDEngine `insert` syntax.
+
+1. Support inserting into multi-table in the template
+
+   For example:
+
+   `insert into table_1 values (${ts}, '${id}', '${topic}')
+   table_2 values (${ts}, '${id}', '${topic}')`
+
+2. Support mixing prefixes/suffixes and placeholders in the template
+
+   For example:
+
+   `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.
+
+For example:
+
+`insert into table values (${ts}, '${a_string}')`