go-zero icon indicating copy to clipboard operation
go-zero copied to clipboard

bug on sql concatenation

Open fucktx opened this issue 1 year ago • 1 comments

goctl : 1.6.4

我拼接批量插入的代码 sql部分: ``` INSERT INTO document_accounts (id,tenant_id,app_id,platform_id,associate_account_id,name,avatar,intro,code,biz,original_count,article_count,joined_time,sort,open_status,deleted_status,version,deleted_time,created_time,updated_time,created_by,updated_by,deleted_by,note) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)

参数部分: image image

然后再这块开始报错,我参数和占位符的个数都能对上,都是24个

fucktx avatar May 02 '24 05:05 fucktx

You have args with length 1. Please check it again.

Or can you give the sql and args, I'll have a test.

kevwan avatar May 04 '24 15:05 kevwan

You have args with length 1. Please check it again.

Or can you give the sql and args, I'll have a test.

万总,代码和数据早上已经私信发你了微信了

fucktx avatar May 05 '24 10:05 fucktx