koolphp / koolreport

This is an Open Source PHP Reporting Framework which you can use to write perfect data reports or to construct awesome dashboards using PHP
https://www.koolreport.com/
MIT License
228 stars 65 forks source link

PdoDataSource should check error against SQLSTATE #13

Closed r-da closed 1 year ago

r-da commented 5 years ago

Correct sql error check (see http://php.net/manual/en/pdo.errorinfo.php):

If the SQLSTATE error code is not set or there is no driver-specific error, the elements following element 0 will be set to NULL.