zfcampus / zf-apigility-admin

Admin API and UI for Apigility
BSD 3-Clause "New" or "Revised" License
90 stars 64 forks source link

DB Autodiscover supresses exceptions #364

Closed Naktibalda closed 7 years ago

Naktibalda commented 7 years ago

I thought that DB autodiscover feature is broken because it returned an empty list of tables for non-empty database:

No tables found

Autodiscovery could not find any existing tables, you can insert the table name here:

I did some debugging, and when I printed $e->getMessage() here, I got this output:

Connect Error: SQLSTATE[HY000] [2019] Unknown character set

I fixed my issue by changing utf-8 to utf8, but it would be nice if Apigility told me that character set is incorrect without debugging.

Related PR #305