You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default oracle delimiter for multiple statements is /
However this should obviously not cause the file to split on / if the / is used in some sort of math division. I'm seeing it incorrectly parse a large file at this line here
[Fact]
public void CanParseMultilineScript()
{
var multiCommand = "create table FOO (myid INT NOT NULL)/";
multiCommand += Environment.NewLine;
multiCommand += "create table BAR (myid INT NOT NULL, myNum INT NOT NULL DEFAULT**(10/2)**)";
var connectionManager = new OracleConnectionManager("connectionstring", new OracleCommandSplitter('/'));
var result = connectionManager.SplitScriptIntoCommands(multiCommand);
result.Count().ShouldBe(2);
Same problem for trigger creation with ";" the only thing you can do is to use the custom keyword DELIMITER ; before the division to change the current SQL command delimiter in the file. I'm sure the SQL splitting behavior could be improved.
The default oracle delimiter for multiple statements is /
However this should obviously not cause the file to split on / if the / is used in some sort of math division. I'm seeing it incorrectly parse a large file at this line here
l_amount := mv_round_amount(l_amount_to_dist*(l_pct/100),trans_rec.currency_id);
What's going on here? This seems so basic that I feel I must be doing something wrong, but this is indeed what is happening.
It doesn't seem to parse on / if the / is in comments or in strings. What's going on here? How can i move forward.
From what i can tell the parsing logic is implemented in dbup and not in dbup.oracle which is why i'm posting this here.
The text was updated successfully, but these errors were encountered: