Skip to content

Commit

Permalink
Cleaning up and improving Batch parser logic for "GO" separator
Browse files Browse the repository at this point in the history
Co-Authored-By: gambit9009 <22751647+gambit9009@users.noreply.github.com>
Co-Authored-By: Rambabu Yalla <40505813+ram2ybabu@users.noreply.github.com>
  • Loading branch information
3 people committed Jun 4, 2021
1 parent 333736b commit 49b3159
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions NexusInterfaces/csql.cs
Expand Up @@ -48,10 +48,7 @@ public void ExecuteSqlScript(String script)
}
private String[] ParseBatches(string scriptText)
{
Regex blank = new Regex("\r\n\\s+\rn");
scriptText = blank.Replace(scriptText, "");
Regex reg1 = new Regex("\r\n\\s*go\\s*\r\n*", RegexOptions.IgnoreCase);

return reg1.Split(scriptText);

}
Expand Down

0 comments on commit 49b3159

Please sign in to comment.