[TD-2302]<fix>: fix nodejs exception when query a null value

This commit is contained in:
zyyang 2020-12-29 16:09:19 +08:00
parent 332cdd34f2
commit c5cc493312
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
const taos = require('../tdengine');
var conn = taos.connect({host: "127.0.0.1", user: "root", password: "taosdata", config: "/etc/taos", port: 6030});
var c1 = conn.cursor();
c1.query('select * from test.weather', true).then(function (result) {
result.pretty();
});
conn.close();