Issue #2060819 by legolasbo: Remove Unused local variable from /core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php.
parent
e57e17db54
commit
30202e3f0f
|
@ -81,7 +81,7 @@ class Connection extends DatabaseConnection {
|
||||||
|
|
||||||
// Attach one database for each registered prefix.
|
// Attach one database for each registered prefix.
|
||||||
$prefixes = $this->prefixes;
|
$prefixes = $this->prefixes;
|
||||||
foreach ($prefixes as $table => &$prefix) {
|
foreach ($prefixes as &$prefix) {
|
||||||
// Empty prefix means query the main database -- no need to attach anything.
|
// Empty prefix means query the main database -- no need to attach anything.
|
||||||
if (!empty($prefix)) {
|
if (!empty($prefix)) {
|
||||||
// Only attach the database once.
|
// Only attach the database once.
|
||||||
|
@ -180,7 +180,7 @@ class Connection extends DatabaseConnection {
|
||||||
*/
|
*/
|
||||||
public static function sqlFunctionGreatest() {
|
public static function sqlFunctionGreatest() {
|
||||||
$args = func_get_args();
|
$args = func_get_args();
|
||||||
foreach ($args as $k => $v) {
|
foreach ($args as $v) {
|
||||||
if (!isset($v)) {
|
if (!isset($v)) {
|
||||||
unset($args);
|
unset($args);
|
||||||
}
|
}
|
||||||
|
@ -297,7 +297,7 @@ class Connection extends DatabaseConnection {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function nextId($existing_id = 0) {
|
public function nextId($existing_id = 0) {
|
||||||
$transaction = $this->startTransaction();
|
$this->startTransaction();
|
||||||
// We can safely use literal queries here instead of the slower query
|
// We can safely use literal queries here instead of the slower query
|
||||||
// builder because if a given database breaks here then it can simply
|
// builder because if a given database breaks here then it can simply
|
||||||
// override nextId. However, this is unlikely as we deal with short strings
|
// override nextId. However, this is unlikely as we deal with short strings
|
||||||
|
|
Loading…
Reference in New Issue