Skip to content

jdbc:TAOS-WS通过mybatisplus批量插入报错,换RS包正常 #35384

@jiayan586

Description

@jiayan586

Bug Description
按照官网的批量插入super表的方式:
1.

Image

报错: single table allowed in one stmt

Image
  1. 官网文档第二种方式:
Image

报错: Illegal number of columns

Image

这是我的mapper(表名不同,sql语句差不多):

Image

To Reproduce
Steps to reproduce the behavior:

目前测试只要使用jdbc:TAOS-WS, values后面跟多条记录一定报错,单条可以插入
修改为jdbc:TAOS-RS 连接后正常, values后可通过'foreach'同时插入多条

版本为:

  • TDengine Version [3.4.1.13]
  • JDBC Version [3.8.3]

Expected Behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • TDengine Version [3.4.1.13]
  • JDBC Version [3.8.3]

Additional Context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions