Skip to content

Commit b438aeb

Browse files
committed
Update Other Dependencies
1 parent d488659 commit b438aeb

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

src/Tests/OracleConnectionManagerTests.cs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,25 @@ public void CanParseMultilineScript()
3131

3232
result.Count().ShouldBe(2);
3333
}
34+
<<<<<<< Updated upstream
35+
=======
36+
37+
[Fact]
38+
public void CanParseWithoutCommentTest()
39+
{
40+
var multiCommand = @"
41+
-- inline comment that should be ignored
42+
/*
43+
multiline comment that should be ignored
44+
*/
45+
create table FOO /*comment*/(text VARCHAR(255) NOT NULL DEFAULT '/*not a comment*/ --not a comment')/ -- inline comment that should be ignored
46+
";
47+
var connectionManager = new OracleConnectionManager("connectionstring", new OracleCommandSplitter('/'));
48+
var result = connectionManager.SplitScriptIntoCommands(multiCommand);
49+
50+
result.Count().ShouldBe(1, "there is more than 1 command");
51+
result.Single().ShouldBe("create table FOO (text VARCHAR(255) NOT NULL DEFAULT '/*not a comment*/ --not a comment')", "the command not match");
52+
}
53+
>>>>>>> Stashed changes
3454
}
3555
}

src/Tests/Tests.csproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,17 @@
1010

1111
<ItemGroup>
1212
<ProjectReference Include="..\dbup-oracle\dbup-oracle.csproj"/>
13+
<<<<<<< Updated upstream
1314
<PackageReference Include="DbUp.Tests.Common" Version="5.0.37"/>
1415
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0"/>
1516
<PackageReference Include="xunit" Version="2.6.6"/>
1617
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.6">
18+
=======
19+
<PackageReference Include="DbUp.Tests.Common" Version="6.0.4" />
20+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
21+
<PackageReference Include="xunit" Version="2.9.2" />
22+
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.0">
23+
>>>>>>> Stashed changes
1724
<PrivateAssets>all</PrivateAssets>
1825
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1926
</PackageReference>

src/dbup-oracle/dbup-oracle.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
</PropertyGroup>
1818

1919
<ItemGroup>
20+
<<<<<<< Updated upstream
2021
<PackageReference Include="dbup-core" Version="5.0.37"/>
2122
</ItemGroup>
2223

@@ -26,6 +27,10 @@
2627

2728
<ItemGroup Condition="'$(TargetFramework)' == 'net462'">
2829
<PackageReference Include="Oracle.ManagedDataAccess" Version="12.2.1100" />
30+
=======
31+
<PackageReference Include="dbup-core" Version="6.0.4" />
32+
<PackageReference Include="Oracle.ManagedDataAccess.Core" Version="23.6.1" />
33+
>>>>>>> Stashed changes
2934
</ItemGroup>
3035

3136
<ItemGroup>

0 commit comments

Comments
 (0)