Skip to content

setInc setDec无法处理与关键字重名的字段的bug #8

@xcorp1986

Description

@xcorp1986

setfield时给field加上``

由于tp对set参数的处理很粗暴,等号后面是直接拼接传入的字符串的,只能从这里修复一下了。
不清楚是不是有数据库不支持真这种写法,不过从update中调用的prasekey的写法来看,似乎问题不大。
ref top-think/thinkphp#439

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions