diff --git a/src/Ifsnop/Mysqldump/Mysqldump.php b/src/Ifsnop/Mysqldump/Mysqldump.php index 835c9bb4..186b7905 100644 --- a/src/Ifsnop/Mysqldump/Mysqldump.php +++ b/src/Ifsnop/Mysqldump/Mysqldump.php @@ -441,9 +441,9 @@ private function getTableStructure($tableName) $columnTypes = array(); $columns = $this->dbHandler->query( - $this->typeAdapter->show_columns($tableName), - PDO::FETCH_ASSOC + $this->typeAdapter->show_columns($tableName) ); + $columns->setFetchMode(PDO::FETCH_ASSOC); foreach($columns as $key => $col) { $types = $this->typeAdapter->parseColumnType($col);