Skip to content

Commit 77889da

Browse files
committed
Change OpetreeRebalanceCommand StopAfter to Int
1 parent 92d3e44 commit 77889da

File tree

15 files changed

+21
-21
lines changed

15 files changed

+21
-21
lines changed

src/PrismaDB.QueryParser.MSSQL/AntlrGrammer/MsSqlParser.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ opetreeRebalanceCommand
295295
(
296296
STOP
297297
(
298-
AFTER stopAfter=decimalLiteral (ITERATIONS | HOURS | MINUTES)
298+
AFTER stopAfter=intLiteral (ITERATIONS | HOURS | MINUTES)
299299
)?
300300
)
301301
)?

src/PrismaDB.QueryParser.MSSQL/PrismaDB.QueryParser.MSSQL.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
1414
</PackageReference>
1515
<PackageReference Include="Antlr4.Runtime" Version="4.6.6" />
16-
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.8">
16+
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.0.0">
1717
<PrivateAssets>all</PrivateAssets>
1818
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1919
</PackageReference>
20-
<PackageReference Include="PrismaDB.QueryAST" Version="0.3.6" />
20+
<PackageReference Include="PrismaDB.QueryAST" Version="0.3.7" />
2121
</ItemGroup>
2222
<ItemGroup>
2323
<None Update="AntlrMySqlLexer.g4">

src/PrismaDB.QueryParser.MSSQL/Visitors/CommandVisitors.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public override object VisitOpetreeRebalanceCommand([NotNull] MsSqlParser.Opetre
6464
return res;
6565
}
6666

67-
res.StopAfter = (DecimalConstant)Visit(context.stopAfter);
67+
res.StopAfter = (IntConstant)Visit(context.stopAfter);
6868

6969
if (context.ITERATIONS() != null)
7070
res.StopType = RebalanceStopType.ITERATIONS;

src/PrismaDB.QueryParser.MySQL/AntlrGrammer/MySqlParser.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ opetreeRebalanceCommand
294294
(
295295
STOP
296296
(
297-
AFTER stopAfter=decimalLiteral (ITERATIONS | HOURS | MINUTES)
297+
AFTER stopAfter=intLiteral (ITERATIONS | HOURS | MINUTES)
298298
)?
299299
)
300300
)?

src/PrismaDB.QueryParser.MySQL/PrismaDB.QueryParser.MySQL.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
1414
</PackageReference>
1515
<PackageReference Include="Antlr4.Runtime" Version="4.6.6" />
16-
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.8">
16+
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.0.0">
1717
<PrivateAssets>all</PrivateAssets>
1818
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1919
</PackageReference>
20-
<PackageReference Include="PrismaDB.QueryAST" Version="0.3.6" />
20+
<PackageReference Include="PrismaDB.QueryAST" Version="0.3.7" />
2121
</ItemGroup>
2222
<ItemGroup>
2323
<None Update="AntlrMySqlLexer.g4">

src/PrismaDB.QueryParser.MySQL/Visitors/CommandVisitors.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public override object VisitOpetreeRebalanceCommand([NotNull] MySqlParser.Opetre
7272
return res;
7373
}
7474

75-
res.StopAfter = (DecimalConstant)Visit(context.stopAfter);
75+
res.StopAfter = (IntConstant)Visit(context.stopAfter);
7676

7777
if (context.ITERATIONS() != null)
7878
res.StopType = RebalanceStopType.ITERATIONS;

src/PrismaDB.QueryParser.Postgres/AntlrGrammer/PostgresParser.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ opetreeRebalanceCommand
288288
(
289289
STOP
290290
(
291-
AFTER stopAfter=decimalLiteral (ITERATIONS | HOURS | MINUTES)
291+
AFTER stopAfter=intLiteral (ITERATIONS | HOURS | MINUTES)
292292
)?
293293
)
294294
)?

src/PrismaDB.QueryParser.Postgres/PrismaDB.QueryParser.Postgres.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
1414
</PackageReference>
1515
<PackageReference Include="Antlr4.Runtime" Version="4.6.6" />
16-
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="2.9.8">
16+
<PackageReference Include="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.0.0">
1717
<PrivateAssets>all</PrivateAssets>
1818
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1919
</PackageReference>
20-
<PackageReference Include="PrismaDB.QueryAST" Version="0.3.6" />
20+
<PackageReference Include="PrismaDB.QueryAST" Version="0.3.7" />
2121
</ItemGroup>
2222
<ItemGroup>
2323
<None Update="AntlrPostgresLexer.g4">

src/PrismaDB.QueryParser.Postgres/Visitors/CommandVisitors.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public override object VisitOpetreeRebalanceCommand([NotNull] PostgresParser.Ope
6464
return res;
6565
}
6666

67-
res.StopAfter = (DecimalConstant)Visit(context.stopAfter);
67+
res.StopAfter = (IntConstant)Visit(context.stopAfter);
6868

6969
if (context.ITERATIONS() != null)
7070
res.StopType = RebalanceStopType.ITERATIONS;

test/ParserTests-MSSQL/ParserTests-MSSQL.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<ItemGroup>
77
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
88
<PackageReference Include="xunit" Version="2.4.1" />
9-
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
9+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.2">
1010
<PrivateAssets>all</PrivateAssets>
1111
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
1212
</PackageReference>

0 commit comments

Comments
 (0)