Skip to content

Commit

Permalink
Merge pull request openemr#7625 from stephenwaite/iss7565-1
Browse files Browse the repository at this point in the history
fix: use escape identifier instead of binds for sql upgrade migrate t…
  • Loading branch information
stephenwaite authored Aug 6, 2024
2 parents 7635e37 + c5e4fae commit afa9e32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/Utils/SQLUpgradeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,7 @@ private function getTablesList($arg = array())
*/
private function MigrateTableEngine($table, $engine)
{
$r = sqlStatement('ALTER TABLE `' . $table . '` ENGINE=?', [$engine]);
$r = sqlStatement('ALTER TABLE `' . $table . '` ENGINE=' . escape_identifier($engine, ['InnoDB']));
return true;
}

Expand Down

0 comments on commit afa9e32

Please sign in to comment.