DbUp/DbUp — pull request #45 by DamianMac (2014-03-14 14:28:43+00:00)
Title: Script parser removes comments

Hey all

This is a pass at Issue #44
The problem is we're splitting on a GO even if it's in a code comment. We've got two ways to do, one is say "don't do that". The other is remove comments before we split the sql script.

This is a first pass at that, I've pulled the regex script splitting into a SqlBatchParser class and putting the comment stripping in there. I've got a couple of test cases but wouldn't mind an extra set of eyes on it (it's late, I'm tired)