Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复 think\Validate unique规则 当未提供字段名时 未使用要验证的字段名进行查询 导致sql错误 #2696

Open
wants to merge 1 commit into
base: 6.0
Choose a base branch
from

Conversation

153264
Copy link

@153264 153264 commented Apr 16, 2022

$valdiate = Validate::check([
    'user_phone' => '136***142'
],[
    'user_phone' => 'unique:app\model\User,,1,'
]);
// SELECT `user_guid` FROM `user` WHERE (   = '136***142'  AND `user_guid` <> '1' ) AND `user`.`user_delete_time` IS NULL LIMIT 1

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.

None yet

1 participant