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

Eliminate pdo_real_escape_numeric() function #1728

Merged

Conversation

williamjallen
Copy link
Collaborator

Integers are always safe to insert in SQL queries. Thus, we can eliminate the pdo_real_escape_numeric() function and replace all of the existing usages with integer casts. In the vast majority of cases, this function was no longer being used to sanitize values for SQL queries anyway.

@josephsnyder
Copy link
Member

@williamjallen, looks good and we can merge after a rebase!

@williamjallen williamjallen added this pull request to the merge queue Oct 2, 2023
Merged via the queue into Kitware:master with commit cf1b6c8 Oct 2, 2023
2 checks passed
@williamjallen williamjallen deleted the unnecessary-value-quoting branch October 2, 2023 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants