fix: 修复postgresql update .Set(a => a.array ==array ) 数组字段 非参数化解析sql错误问题#2254
Open
dotnetersn wants to merge 2 commits into
Open
fix: 修复postgresql update .Set(a => a.array ==array ) 数组字段 非参数化解析sql错误问题#2254dotnetersn wants to merge 2 commits into
dotnetersn wants to merge 2 commits into
Conversation
Collaborator
|
大佬,用心良苦了,这个问题不需要这么麻烦,最合理是直接在 UpdateProvider Set 特殊解析。 明天我处理好回复你,很简单。 这个PR是哪个AI处理的? |
2881099
added a commit
that referenced
this pull request
Jul 4, 2026
Collaborator
|
大佬,有时间看下我提交的代码。等待你的反馈 |
Author
|
PR 用的claude code + 国产模型。 提交的代码我验证了,看来我还是对源码不够熟悉。另外,叶老板的表达式树看来已经玩的炉火纯青了。 |
Collaborator
|
第一个PR不能接受,因为受影响的范围太广,这个只能在 Set 方法中处理,风险最小。 |
Author
|
Collaborator
|
不需要处理,你直接更新代码测试即可 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
postgresql update set 错误问题
修改前
UPDATE "privs_user" SET "type" = ('0','1') WHERE ("id" = '0aefea9c-a893-465b-a5d5-0598d29f7500')
修改后
UPDATE "privs_user" SET "type" = '{0,1}' WHERE ("id" = '0aefea9c-a893-465b-a5d5-0598d29f7500')