Minor Firebird fixes, more visibility declarations
This commit is contained in:
parent
3493e89d1c
commit
c4c0444e87
@ -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;
|
||||
}
|
||||
|
@ -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}";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user