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