Hi All,
I was trying to get Roundhouse working with our existing database. I
used a nice tool called Claymore (
https://github.com/jaredmcguire/
Claymore) to dump out all of my sql objects to files so I can then
incorporate those into a new RH project.
Everything seems to run fine but on one of the Functions RH just
hangs. I stepped through the RH code and it has to do with the Regex
work in the StatementSplitter class. My regex skills a best are rusty,
but looking at the complexity of the regex expression it looks like RH
is doing much more than just splitting on GO statements.
The Regex hangs on this line
string sql_statement_scrubbed = regex_replace.Replace(sql_to_run,
match => evaluate_and_replace_batch_split_items(match,
regex_replace));
My plan is to dig a bit deeper into our FN to see if I can find the
line that causes it to hang. My question, if anyone has some insight
as to what exactly the Regex is doing that might help me out a bit.