Skip to content

Eliminate pdo_real_escape_numeric() function#1728

Merged
williamjallen merged 1 commit intoKitware:masterfrom
williamjallen:unnecessary-value-quoting
Oct 2, 2023
Merged

Eliminate pdo_real_escape_numeric() function#1728
williamjallen merged 1 commit intoKitware:masterfrom
williamjallen:unnecessary-value-quoting

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 force-pushed the unnecessary-value-quoting branch from cc4ba85 to 63d8f45 Compare October 2, 2023 16:39
@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
@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

Comments