More appeasement of scrutinizer-ci
This commit is contained in:
parent
0ae237ab33
commit
b6192e6c0a
@ -166,11 +166,8 @@ abstract class DB_PDO extends PDO {
|
|||||||
$idents = (array) explode('.', $table);
|
$idents = (array) explode('.', $table);
|
||||||
$segments = count($idents);
|
$segments = count($idents);
|
||||||
|
|
||||||
// Reference the last item in the split string
|
|
||||||
$last =& $idents[$segments - 1];
|
|
||||||
|
|
||||||
// Quote the last item
|
// Quote the last item
|
||||||
$last = $this->_prefix($last);
|
$idents[$segments - 1] = $this->_prefix(end($idents));
|
||||||
|
|
||||||
// Rejoin
|
// Rejoin
|
||||||
$table = implode('.', $idents);
|
$table = implode('.', $idents);
|
||||||
@ -481,7 +478,6 @@ abstract class DB_PDO extends PDO {
|
|||||||
|
|
||||||
$table = $this->quote_table($table);
|
$table = $this->quote_table($table);
|
||||||
$fields = array_keys($data[0]);
|
$fields = array_keys($data[0]);
|
||||||
$vals = array();
|
|
||||||
|
|
||||||
$sql = "INSERT INTO {$table} (";
|
$sql = "INSERT INTO {$table} (";
|
||||||
$sql .= implode(',', $this->quote_ident($fields));
|
$sql .= implode(',', $this->quote_ident($fields));
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
* @package Query
|
* @package Query
|
||||||
* @subpackage Drivers
|
* @subpackage Drivers
|
||||||
* @method array get_dbs()
|
* @method array get_dbs()
|
||||||
* @method mixed driver_query(string $sql, bool $filtered_index)
|
* @method mixed driver_query(string $sql, bool $filtered_index=TRUE)
|
||||||
* @method array get_system_tables()
|
* @method array get_system_tables()
|
||||||
* @method array get_tables()
|
* @method array get_tables()
|
||||||
* @method mixed query(string $sql)
|
* @method mixed query(string $sql)
|
||||||
|
Loading…
Reference in New Issue
Block a user