We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37fba95 commit 9c973d2Copy full SHA for 9c973d2
src/Search_Replace_Command.php
@@ -657,8 +657,8 @@ private static function esc_sql_ident( $idents ) {
657
*/
658
private static function esc_sql_value( $values ) {
659
$quote = function ( $v ) {
660
- // Don't quote numeric values to avoid MySQL's implicit type conversion.
661
- if ( is_numeric( $v ) ) {
+ // Don't quote integer values to avoid MySQL's implicit type conversion.
+ if ( (string)(int) $v === (string) $v ) {
662
return esc_sql( $v );
663
}
664
0 commit comments