spadefoot / kohana-orm-leap

An ORM module for the Kohana PHP framework that is designed to work with all major databases.
http://spadefoot.github.io/kohana-orm-leap/
100 stars 25 forks source link

Incorrect is_connected method for MySQL Improved #79

Closed heaver closed 11 years ago

heaver commented 11 years ago

mysqli_connect returns object, not resource. this code:

Base_DB_Connection::is_connected() { return is_resource($this->resource_id); }

returns FALSE with any MySQL Connection ($this->resource_id).

bluesnowman commented 11 years ago

Excellent catch. I will make the necessary changes. Thanks for your feedback!