变更
This commit is contained in:
@@ -911,9 +911,10 @@ trait QueryTrait
|
||||
*/
|
||||
private function sprintf($column, $value, string $opera = '='): string
|
||||
{
|
||||
if (is_string($value)) {
|
||||
$value = trim($value, '\'"');
|
||||
if (is_numeric($value)) {
|
||||
return "$column $opera $value";
|
||||
}
|
||||
$value = trim($value, '\'"');
|
||||
return "$column $opera '$value'";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user