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

fix(upgrade): Correctly Parse SQL Comments #11658

Merged
merged 2 commits into from
Sep 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,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