pear / DB

http://pear.php.net/package/DB
9 stars 33 forks source link

Add recognition for error codes for Deadlocks and lock timeouts #9

Closed eileenmcnaughton closed 4 years ago

eileenmcnaughton commented 4 years ago

I want to propose that the errorMessage for deadlocks & lock timeouts be made more informative - currently it is returning unknown error but it would be more helpful if it gave the error information.

I note that we have one more we could add

define('DB_ERROR_INVALID_VIEW', -100);

eileenmcnaughton commented 4 years ago

I don't believe travis issues relate to this patch

0.03s$ mysql -e 'CREATE DATABASE pear_db;' ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) The command "mysql -e 'CREATE DATABASE pear_db;'" failed and exited with 1 during .

eileenmcnaughton commented 4 years ago

@ejegg