Subject: new adpter for firebird
Hi, i be start with php-activerecord and try add a new adapter to firebird and founded a prob:
Fatal error: Call to a member function fetch() on a non-object in /home/adell/www/cappellus/lib/php-activerecord/lib/Connection.php on line 256
when i set to mysql or other this work fine, but i set to firebird no. If i coment the block above in Connection.php, all work:
public function columns($table) { $columns = array(); $sth = $this->query_column_info($table); //If comment this loop /* while (($row = $sth->fetch())) { $c = $this->create_column($row); $columns[$c->name] = $c; } */ //all work return $columns; }
what is my mistake? Should I create or overload this function?
June 27 2010
August 1, 2012
Subject: new adpter for firebird
Hi, i be start with php-activerecord and try add a new adapter to firebird and founded a prob:
when i set to mysql or other this work fine, but i set to firebird no. If i coment the block above in Connection.php, all work:
what is my mistake? Should I create or overload this function?