Skip to content

Commit

Permalink
Merge 285d7cb into 73aa521
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-parry committed Nov 16, 2018
2 parents 73aa521 + 285d7cb commit d1593ed
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion system/Database/BaseBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2173,7 +2173,7 @@ public function setUpdateBatch($key, $index = '', $escape = null)

if (! is_array($key))
{
// @todo error
return;
}

is_bool($escape) || $escape = $this->db->protectIdentifiers;
Expand Down
8 changes: 1 addition & 7 deletions system/Database/BaseConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -633,8 +633,6 @@ public function query(string $sql, $binds = null, $queryClass = 'CodeIgniter\\Da
$this->transStatus = false;
}

// @todo deal with errors

if ($this->DBDebug)
{
// We call this function in order to roll-back queries
Expand All @@ -648,15 +646,11 @@ public function query(string $sql, $binds = null, $queryClass = 'CodeIgniter\\Da

if ($transDepth === $this->transDepth)
{
// @todo log
// log_message('error', 'Database: Failure during an automated transaction commit/rollback!');
log_message('error', 'Database: Failure during an automated transaction commit/rollback!');
break;
}
}

// display the errors....
// @todo display the error...

return false;
}

Expand Down
2 changes: 0 additions & 2 deletions system/HTTP/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -756,8 +756,6 @@ public function redirect(string $uri, string $method = 'auto', int $code = null)

$this->setStatusCode($code);

$this->sendHeaders();

return $this;
}

Expand Down

0 comments on commit d1593ed

Please sign in to comment.