Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用websocket参数绑定写入,批量最大为32767,>=2的15次方报错 (0x118):Invalid parameters #27588

Open
gukun00 opened this issue Sep 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@gukun00
Copy link

gukun00 commented Sep 1, 2024

描述
使用websocket参数绑定写入,批量最大为32767,>=2的15次方报错 (0x118):Invalid parameters

复现
使用官方WSParameterBindingFullDemo示例,numOfRow=32768

Failed to insert to table meters using stmt, url: jdbc:TAOS-RS://127.0.0.1:6041/?batchfetch=true; ErrCode:0; ErrMessage: (0x118):Invalid parameters Exception in thread "main" java.sql.SQLException: (0x118):Invalid parameters at com.taosdata.jdbc.ws.TSWSPreparedStatement.executeBatch(TSWSPreparedStatement.java:704) at com.gukun.springboot.tdengine.demo.mybatis.service.demo.WSParameterBindingFullDemo.bindInteger(WSParameterBindingFullDemo.java:83) at com.gukun.springboot.tdengine.demo.mybatis.service.demo.WSParameterBindingFullDemo.main(WSParameterBindingFullDemo.java:29)

问题
websocket是否有条数限制,文档是否有遗漏,或者有什么参数配置可以控制这个批量写入条数

@gukun00 gukun00 added the bug Something isn't working label Sep 1, 2024
@gukun00
Copy link
Author

gukun00 commented Sep 1, 2024

控制websocket批量条数为:32767,及正常运行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant