SP-1558: Fix SQL script parsing with semicolon in string literal

Updated SP-1558 patch