改名
This commit is contained in:
@@ -70,10 +70,10 @@ abstract class Condition extends BaseObject
|
|||||||
return $params;
|
return $params;
|
||||||
}
|
}
|
||||||
|
|
||||||
$check = ltrim($params,'(');
|
$check = ltrim($params, '(');
|
||||||
$check = strtolower(substr($check, 0, 6));
|
$check = strtolower(substr($check, 0, 6));
|
||||||
if (in_array($check, ['update', 'select', 'insert', 'delete'])) {
|
if (in_array($check, ['update', 'select', 'insert', 'delete'])) {
|
||||||
return $params;
|
return trim($params, '()');
|
||||||
} else {
|
} else {
|
||||||
return sprintf('\'%s\'', $params);
|
return sprintf('\'%s\'', $params);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user