Skip to content

扩展PUT combine,同一个key在筛选/数据体中可同时存在,两者非互斥逻辑 - #699

Closed
jettisonJava wants to merge 1 commit into
Tencent:masterfrom
jettisonJava:patch-1
Closed

扩展PUT combine,同一个key在筛选/数据体中可同时存在,两者非互斥逻辑#699
jettisonJava wants to merge 1 commit into
Tencent:masterfrom
jettisonJava:patch-1

Conversation

@jettisonJava

Copy link
Copy Markdown
Contributor

不限制combine内的key只能作为条件,可使用table:{"a":"1","@combine":"a:a=3331"}的方式对a=3331的数据修改为a=1。同时兼容旧的combine格式 2种方式
1.(原有的方式)根据条件combine拼接数据体生成筛选条件,修数据:update Table set b='2' where a='2' {"Table":{"a":"2","b":"2","@combine":"a"}}
2.(新增)根据条件combine+数据生成筛选条件,修数据:update Table set a='2',b='2' where a='111' {"Table":{"a":"2","b":"2","@combine":"a:a=111"}}

不限制combine内的key只能作为条件,可使用table:{"a":"1","@combine":"a:a=3331"}的方式对a=3331的数据修改为a=1。同时兼容旧的combine格式
2种方式
1.(原有的方式)根据条件combine拼接数据体生成筛选条件,修数据:update Table set b='2' where a='2'
{"Table":{"a":"2","b":"2","@combine":"a"}}
2.(新增)根据条件combine+数据生成筛选条件,修数据:update Table set a='2',b='2' where a='111'
{"Table":{"a":"2","b":"2","@combine":"a:a=111"}}
@TommyLemon TommyLemon closed this Sep 1, 2026
@TommyLemon

Copy link
Copy Markdown
Collaborator

收益有限且安全风险较大,这个不合并哈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants