Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(upgrade): Correctly Parse SQL Comments (#11658)
Browse files Browse the repository at this point in the history
Refs: MON-14848
  • Loading branch information
jeremyjaouen authored and kduret committed Sep 1, 2022
1 parent 4de8b7d commit f31106e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ private function writeExecutedQueriesCountInTemporaryFile(string $tmpFile, int $
*/
private function isSqlComment(string $line): bool
{
return str_starts_with('--', trim($line));
return str_starts_with(trim($line), '--');
}

/**
Expand Down

0 comments on commit f31106e

Please sign in to comment.