File tree Expand file tree Collapse file tree 3 files changed +32
-0
lines changed
Expand file tree Collapse file tree 3 files changed +32
-0
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 1717 </PropertyGroup >
1818
1919 <ItemGroup >
20+ <<<<<<< Updated upstream
2021 <PackageReference Include =" dbup-core" Version =" 5.0.37" />
2122 </ItemGroup >
2223
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 >
You can’t perform that action at this time.
0 commit comments