kohana / database

A Kohana module for database interactions, building queries, and prepared statements
http://kohanaframework.org/documentation
158 stars 140 forks source link

Update MySQL.php #68

Closed youkind closed 10 years ago

youkind commented 10 years ago

mysql_connect() will not throw any exception by default. throw it by manual.

zeelot commented 10 years ago

Sorry, we can't merge into master branches, can you recreate this for 3.3/develop? Also, are you sure? I thought this did get turned into exceptions already. Can you give me a way to reproduce the issue?

cbandy commented 10 years ago

@Zeelot, mysql_connect emits an E_WARNING and returns false.

zeelot commented 10 years ago

Right, that's what I thought. And we automatically turn those into exceptions.