20250820 v1.0.2-b2
This commit is contained in:
@@ -29,16 +29,19 @@
|
||||
*/
|
||||
public function Delete (string $table, ConditionBuilder $where = new ConditionBuilder()): bool
|
||||
{
|
||||
// Подготавливаю имя таблицы
|
||||
$table = $this->PrepareTableName($table);
|
||||
|
||||
/**
|
||||
* Получаю SQL-запрос и параметры для where.
|
||||
*
|
||||
* @var string $sql_where SQL-запрос для where.
|
||||
* @var array $params Параметры запроса.
|
||||
*/
|
||||
[$sql_where, $params] = $where->Build();
|
||||
[$sql_where, $params] = $where->Build($this->Config->Driver);
|
||||
|
||||
// Создаю запрос
|
||||
$sql = "DELETE FROM $this->DBSignOpen$table$this->DBSignClose";
|
||||
$sql = "DELETE FROM $table";
|
||||
|
||||
// Если заданы where-параметры
|
||||
if ($where->Count() > 0)
|
||||
|
Reference in New Issue
Block a user