Minor Firebird fixes, more visibility declarations

This commit is contained in:
Timothy Warren 2012-02-21 12:55:25 -05:00
parent 3493e89d1c
commit c4c0444e87
2 changed files with 5 additions and 5 deletions

View File

@ -17,7 +17,7 @@
*
* PDO-firebird isn't stable, so this is a wrapper of the ibase_ public functions.
*/
class firebird {
class firebird extends DB_PDO {
protected $conn, $statement, $trans;
private $esc_char = "''";
@ -217,11 +217,11 @@ SQL;
/**
* Start a database transaction
*
* @return resource
* @return bool
*/
public function beginTransaction()
{
if($this->trans = ibase_trans($this->conn) !== null)
if(($this->trans = ibase_trans($this->conn)) !== NULL)
{
return TRUE;
}

View File

@ -19,13 +19,13 @@
*/
class ODBC_manip extends db_manip {
function create_table($name, $columns, $constraints=array(), $indexes=array())
public function create_table($name, $columns, $constraints=array(), $indexes=array())
{
//ODBC can't know how to create a table
return FALSE;
}
function delete_table($name)
public function delete_table($name)
{
return "DROP TABLE {$name}";
}