Skip to content

Commit

Permalink
FIX: altering MySQL table engine failed.
Browse files Browse the repository at this point in the history
  • Loading branch information
hschletz committed May 18, 2019
1 parent 4ead798 commit da75631
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Table/Mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ public function setEngine($engine)
);
// MySQL ignores invalid engine names. Check explicitly.
// The getEngine() also implicitly updates $_engine.
$this->_engine = null; // force fetch by getEngine()
if (strcasecmp($this->getEngine(), $engine) != 0) {
throw new \RuntimeException('Unsupported table engine: ' . $engine);
}
Expand Down

0 comments on commit da75631

Please sign in to comment.