TDengine icon indicating copy to clipboard operation
TDengine copied to clipboard

Python query NCHAR data but the result is None

Open mujin-zl opened this issue 6 years ago • 7 comments

Python通过JDBC的方式查询NCHAR类型的字段数据为None,读取不出,在shell终端下查询返回正常数据,请问这是什么原因?配置文件里的charset是UTF-8

mujin-zl avatar Oct 16 '20 02:10 mujin-zl

Python 通过 JDBC 的方式。。。

能详细描述一下吗?

sangshuduo avatar Oct 16 '20 03:10 sangshuduo

Python通过JDBC的方式。。。

能详细描述一下吗?

taos.connect(host='127.0.0.1', port=6020, user='root', password='123456', database='bd', config="/etc/taos", charset="UTF-8")

mujin-zl avatar Oct 16 '20 03:10 mujin-zl

port 为什么是 6020?

sangshuduo avatar Oct 16 '20 13:10 sangshuduo

TDengine的默认端口是6030

zyyang90 avatar Oct 17 '20 01:10 zyyang90

我也遇到了一样的问题,python 读出的中文数据是None

cddonald avatar Oct 19 '20 06:10 cddonald

@cddonald  可以详细描述一下如何重现吗?

sangshuduo avatar Oct 27 '20 02:10 sangshuduo

没有更新,关闭。

sangshuduo avatar Jan 19 '21 08:01 sangshuduo