function __construct()
{
-
+ // this might get run before we have imported the database
+ // and hence not have any db.
$this->loadIniFiles(); //?? shared???
- $dbo = DB_DataObject::factory('core_enum');
+ try {
+ $dbo = DB_DataObject::factory('core_enum');
+ } catch(PDO_DataObject_Exception_InvalidConfig $e) {
+ echo "SKipping MysqlEngineCharse - no database yet\n";
+ return;
+ }
+
+ die("HERE");
if (is_a($dbo, 'PDO_DataObject')) {
$this->views = $dbo->generator()->introspection()->getListOf('views');
if(strpos($tbl, '__keys') !== false ){
continue;
}
+
if(in_array($tbl , $views)) {
continue;
}
if (!$ce->fetch()) {
continue;
}
+ //AWS is returning captials?
+ $engine = isset($ce->engine) ? $ce->engine : $ce->ENGINE;
- if($ce->engine == 'InnoDB' ){
+ if($engine == 'InnoDB' ){
echo "InnoDB: SKIP $tbl\n";
continue;
}
- if($ce->engine == 'ndbcluster' ){
+ if($engine == 'ndbcluster' ){
echo "ndbcluster: SKIP $tbl\n";
continue;
}