Various cleanup
This commit is contained in:
parent
0856de65fc
commit
80b77487eb
@ -83,18 +83,18 @@ class firebird extends DB_PDO {
|
||||
|
||||
if (isset($this->trans))
|
||||
{
|
||||
$this->statement = ibase_query($this->trans, $sql);
|
||||
$this->statement = @ibase_query($this->trans, $sql);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->statement = ibase_query($this->conn, $sql);
|
||||
$this->statement = @ibase_query($this->conn, $sql);
|
||||
}
|
||||
|
||||
// Throw the error as a exception
|
||||
/*if ($this->statement === FALSE)
|
||||
if ($this->statement === FALSE)
|
||||
{
|
||||
throw new PDOException(ibase_errmsg());
|
||||
}*/
|
||||
}
|
||||
|
||||
return $this->statement;
|
||||
}
|
||||
@ -157,13 +157,13 @@ class firebird extends DB_PDO {
|
||||
*/
|
||||
public function prepare($query, $options=NULL)
|
||||
{
|
||||
$this->statement = ibase_prepare($this->conn, $query);
|
||||
$this->statement = @ibase_prepare($this->conn, $query);
|
||||
|
||||
// Throw the error as an exception
|
||||
/*if ($this->statement === FALSE)
|
||||
if ($this->statement === FALSE)
|
||||
{
|
||||
throw new PDOException(ibase_errmsg());
|
||||
}*/
|
||||
}
|
||||
|
||||
return $this->statement;
|
||||
}
|
||||
|
@ -59,28 +59,6 @@ class Query_Builder {
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Shortcut to directly call database methods
|
||||
*
|
||||
* @param string $name
|
||||
* @param array $params
|
||||
* @return mixed
|
||||
*/
|
||||
public function __call($name, $params)
|
||||
{
|
||||
if (method_exists($this->db, $name))
|
||||
{
|
||||
if (is_callable($this->db->$name))
|
||||
{
|
||||
return call_user_func_array($this->db->$name, $params);
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Select and retrieve all records from the current table, and/or
|
||||
* execute current compiled query
|
||||
@ -93,7 +71,7 @@ class Query_Builder {
|
||||
public function get($table='', $limit=FALSE, $offset=FALSE)
|
||||
{
|
||||
// @todo Only add in the table name when using the select method
|
||||
// @tood Only execute combined query when using other query methods and empty parameters
|
||||
// @todo Only execute combined query when using other query methods and empty parameters
|
||||
|
||||
$sql = 'SELECT * FROM ' . $this->db->quote_ident($table);
|
||||
|
||||
@ -172,4 +150,16 @@ class Query_Builder {
|
||||
// @todo Implement from method
|
||||
return $this;
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* String together the sql statements for sending to the db
|
||||
*
|
||||
* @return $string
|
||||
*/
|
||||
private function _compile()
|
||||
{
|
||||
// @todo Implement _compile method
|
||||
}
|
||||
}
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user