/** * Adds vendor-specific info for table. * * @param Table $table */ protected function addTableVendorInfo(Table $table) { $stmt = $this->dbh->query("SHOW TABLE STATUS LIKE '" . $table->getName() . "'"); $row = $stmt->fetch(PDO::FETCH_ASSOC); $vi = $this->getNewVendorInfoObject($row); $table->addVendorInfo($vi); }
/** * Adds vendor-specific info for table. * * @param Table $table */ protected function addTableVendorInfo(Table $table) { $stmt = $this->dbh->query("SHOW TABLE STATUS LIKE '" . $table->getName() . "'"); $row = $stmt->fetch(PDO::FETCH_ASSOC); if (!$this->addVendorInfo) { //since we depend on `Engine` in the MysqlPlatform, we have always extract this vendor information $row = array('Engine' => $row['Engine']); } $vi = $this->getNewVendorInfoObject($row); $table->addVendorInfo($vi); }