提交 b7188547 编写于 作者: Z zyyang

change

上级 f9dd3a97
{ {
"name": "td2.0-connector", "name": "td2.0-connector",
"version": "2.0.1", "version": "2.0.4",
"description": "A Node.js connector for TDengine.", "description": "A Node.js connector for TDengine.",
"main": "tdengine.js", "main": "tdengine.js",
"scripts": { "scripts": {
......
...@@ -84,10 +84,19 @@ q.execute().then(function(r) { ...@@ -84,10 +84,19 @@ q.execute().then(function(r) {
r.pretty(); r.pretty();
}); });
// test query null value
c1.execute("create table if not exists td_connector_test.weather(ts timestamp, temperature float, humidity int) tags(location nchar(64))");
c1.execute("insert into t1 using weather tags('北京') values(now, 11.11, 11)");
c1.execute("insert into t1(ts, temperature) values(now, 22.22)");
c1.execute("insert into t1(ts, humidity) values(now, 33)");
c1.query('select * from test.t1', true).then(function (result) {
result.pretty();
});
var q = c1.query('select * from td_connector_test.weather'); var q = c1.query('select * from td_connector_test.weather');
console.log(q.query); console.log(q.query);
q.execute().then(function(r) { q.execute().then(function(r) {
//console.log(r);
r.pretty(); r.pretty();
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册