Fix some code quality issues

This commit is contained in:
Timothy Warren 2014-03-17 19:45:41 -04:00
parent 5e464ef158
commit 97730f0002
3 changed files with 4 additions and 5 deletions

View File

@ -72,7 +72,7 @@ class Firebird extends DB_PDO {
}
// Throw an exception to make this match other pdo classes
if ( ! is_resource($this->conn)) throw new PDOException(fbird_errmsg(), fbird_errcode());
if ( ! is_resource($this->conn)) throw new PDOException(fbird_errmsg(), fbird_errcode(), NULL);
// Load these classes here because this
// driver does not call the constructor
@ -121,7 +121,7 @@ class Firebird extends DB_PDO {
// Throw the error as a exception
$err_string = fbird_errmsg() . "Last query:" . $this->last_query;
if ($this->statement_link === FALSE) throw new PDOException($err_string, fbird_errcode());
if ($this->statement_link === FALSE) throw new PDOException($err_string, fbird_errcode(), NULL);
$this->statement = new FireBird_Result($this->statement_link);
@ -143,7 +143,7 @@ class Firebird extends DB_PDO {
$this->statement_link = fbird_prepare($this->conn, $query);
// Throw the error as an exception
if ($this->statement_link === FALSE) throw new PDOException(fbird_errmsg(), fbird_errcode());
if ($this->statement_link === FALSE) throw new PDOException(fbird_errmsg(), fbird_errcode(), NULL);
$this->statement = new FireBird_Result($this->statement_link);

View File

@ -19,7 +19,7 @@
* @package Query
* @subpackage Drivers
* @method array get_dbs()
* @method mixed driver_query(string $sql)
* @method mixed driver_query(string $sql, bool $filtered_index)
* @method array get_system_tables()
* @method array get_tables()
* @method mixed query(string $sql)

View File

@ -68,7 +68,6 @@ class SQLite extends DB_PDO {
*/
public function get_tables()
{
$tables = array();
$sql = $this->sql->table_list();
$res = $this->query($sql);