Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

CMysqlSchema::findColumns improve error reporting #1952

denisarius opened this Issue Jan 11, 2013 · 2 comments


3 participants

denisarius commented Jan 11, 2013

if the method fails, higher layers will get an error like
'CDbException: The table "XXX" for active record class "YYY" cannot be found in the database' whatever exception was risen during the execution of


(see GitHub)
because any exception is catched and the method just returns false;
It can be a really uninformative especially if one uses his own CDbConnection or CDbCommand derivatives.


cebe commented Jan 11, 2013

What exception can occur other than "table does not exist"?

@ghost ghost assigned cebe Jan 11, 2013


denisarius commented Jan 11, 2013

In brief: CDbConnection misconfiguration (one can use single connection instance and switch between several hosts\DBs), connection error (timeout, max connection limit exceeded, etc.), sql query timeout (due to irresponsive server), in general any query error that we are dealing with when communicating with DBMS.

@samdark samdark closed this Nov 17, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment