-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Always escape identifiers in the set(), setUpdateBatch(), and insertBatch() #5132
Always escape identifiers in the set(), setUpdateBatch(), and insertBatch() #5132
Conversation
b8dfe29
to
ef08b6f
Compare
You need to update the PHPdoc. CodeIgniter4/system/Database/BaseBuilder.php Line 1343 in ef08b6f
And user guide, too. |
Thanks, response. Thanks to your pointers, I realized that I have a problem similar to this case with the setUpdateBatch and insertBatch identifiers. |
6ae5657
to
1b05bb6
Compare
@ytetsuro
It should be like |
1b05bb6
to
9ac8f50
Compare
Thanks, response. You are right. Fixed it.💪 |
9ac8f50
to
fc2b487
Compare
The first commit:
Sorry, I don't know what you are saying. DeepL translation:
Google translation:
|
fc2b487
to
4c67b69
Compare
Sorry. |
I didn't understand it before, but this change is necessary for the normal use case in Oracle. The normal use case is when an identifier is quoted and lowercased, like In this case, if a user specify See https://seeq.atlassian.net/wiki/spaces/KB/pages/443088907/SQL+Column+Names+and+Case+Sensitivity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cancel the approval once.
I decided that there was no case where the column name in the set clause did not need to be escaped, so I turned off the unescaping process.
…o mean "identifiers are escaped".
4c67b69
to
713ac6f
Compare
I'm sorry to have bothered you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let us include this change in the user guide changelog.
I'm sorry. Please tell me. |
No, not there. I meant here. |
Thanks, response. Fixed it. |
Thank you, @ytetsuro |
Fixed a problem where identifiers were not escaped in the set, setUpdateBatch, and insertBatch methods.
Description
I decided that there was no case where the column name in the set clause did not need to be escaped, so I turned off the unescaping process.
The same goes for the table name when inserting.
see: #2487 (comment)
Checklist: