当前使用版本(必填,否则不予处理)
该问题是如何引起的?(确定最新版也有问题再提!!!)
重现步骤(如果有就写完整)
insert into table_name (id, name, tenant_id) select uuid_short(), name, tenant_id from table_name
报错信息
当启用多租户拦截时,拦截器TenantLineInnerInterceptor中执行processInsert,随后调用processInsertSelect; 在执行processInsertSelect中的appendSelectItem时,会拼上租户列,导致sql变成: insert into table_name (id, name, tenant_id) select uuid_short(), name, tenant_id, tenant_id from table_name
期望
在执行processInsertSelect中拼接租户列时,先判断selectItems中是否已经存在了租户列
Comment From: huayanYu
期望你能直接提PR