'The behaviors is different when I use RESTful API and JNI interface to access TDengine

I'm using TDengine database.

I have a SQL statement:

select count(*) as metric from stb_video_test where  account_id = '123456789'  and  ts > now - 1m; 

When I use RESTful API, it executes correctly. When I execute it with JNI interface, it failed. The error information is:

java.sql.SQLException:JNI ERROR(2356): invalid num of fields

In my opinion, its behavior should be the same as the restful style. What may be the problem?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source