Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync repos for the release 170.3.0 #105

Merged
merged 10 commits into from
Dec 12, 2024
1 change: 1 addition & 0 deletions SqlScriptDom/GenerateFiles.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<GLexerParserCompile Include="$(SQLSCRIPTDOM)\Parser\TSql\TSql140.g" />
<GLexerParserCompile Include="$(SQLSCRIPTDOM)\Parser\TSql\TSql150.g" />
<GLexerParserCompile Include="$(SQLSCRIPTDOM)\Parser\TSql\TSql160.g" />
<GLexerParserCompile Include="$(SQLSCRIPTDOM)\Parser\TSql\TSql170.g" />
</ItemGroup>
<Target Name="CreateCsGenIntermediateOutputPath" AfterTargets="BuildGenerateSources" BeforeTargets="CoreCompile">
<MakeDir Directories="$(CsGenIntermediateOutputPath)" Condition="!Exists('$(CsGenIntermediateOutputPath)')" />
Expand Down
4 changes: 4 additions & 0 deletions SqlScriptDom/Parser/TSql/OnOffSimpleDbOptionsHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ private OnOffSimpleDbOptionsHelper()

// 160 options
AddOptionMapping(DatabaseOptionKind.Ledger, CodeGenerationSupporter.Ledger, SqlVersionFlags.TSql160AndAbove);

// 170 options
// TODO: add any new 170 options here

}

internal static readonly OnOffSimpleDbOptionsHelper Instance = new OnOffSimpleDbOptionsHelper();
Expand Down
2 changes: 2 additions & 0 deletions SqlScriptDom/Parser/TSql/OptionsHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ internal SqlVersionFlags MapSqlVersionToSqlVersionFlags(SqlVersion sqlVersion)
return SqlVersionFlags.TSql150;
case SqlVersion.Sql160:
return SqlVersionFlags.TSql160;
case SqlVersion.Sql170:
return SqlVersionFlags.TSql170;
default:
throw new ArgumentException(String.Format(CultureInfo.CurrentCulture, SqlScriptGeneratorResource.UnknownEnumValue, sqlVersion, "SqlVersion"), "sqlVersion");
}
Expand Down
20 changes: 11 additions & 9 deletions SqlScriptDom/Parser/TSql/SqlVersionFlags.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,23 @@ internal enum SqlVersionFlags
TSql140 = 0x40,
TSql150 = 0x80,
TSql160 = 0x100,
TSql170 = 0x200,

TSqlAll = TSql80 | TSql90 | TSql100 | TSql110 | TSql120 | TSql130 | TSql140 | TSql150 | TSql160,
TSql90AndAbove = TSql90 | TSql100 | TSql110 | TSql120 | TSql130 | TSql140 | TSql150 | TSql160,
TSql100AndAbove = TSql100 | TSql110 | TSql120 | TSql130 | TSql140 | TSql150 | TSql160,
TSql110AndAbove = TSql110 | TSql120 | TSql130 | TSql140 | TSql150 | TSql160,
TSql120AndAbove = TSql120 | TSql130 | TSql140 | TSql150 | TSql160,
TSql130AndAbove = TSql130 | TSql140 | TSql150 | TSql160,
TSql140AndAbove = TSql140 | TSql150 | TSql160,
TSql150AndAbove = TSql150 | TSql160,
TSql160AndAbove = TSql160,
TSqlAll = TSql80 | TSql90 | TSql100 | TSql110 | TSql120 | TSql130 | TSql140 | TSql150 | TSql160 | TSql170,
TSql90AndAbove = TSql90 | TSql100 | TSql110 | TSql120 | TSql130 | TSql140 | TSql150 | TSql160 | TSql170,
TSql100AndAbove = TSql100 | TSql110 | TSql120 | TSql130 | TSql140 | TSql150 | TSql160 | TSql170,
TSql110AndAbove = TSql110 | TSql120 | TSql130 | TSql140 | TSql150 | TSql160 | TSql170,
TSql120AndAbove = TSql120 | TSql130 | TSql140 | TSql150 | TSql160 | TSql170,
TSql130AndAbove = TSql130 | TSql140 | TSql150 | TSql160 | TSql170,
TSql140AndAbove = TSql140 | TSql150 | TSql160 | TSql170,
TSql150AndAbove = TSql150 | TSql160 | TSql170,
TSql160AndAbove = TSql160 | TSql170,
TSqlUnder110 = TSql80 | TSql90 | TSql100,
TSqlUnder120 = TSql80 | TSql90 | TSql100 | TSql110,
TSqlUnder130 = TSql80 | TSql90 | TSql100 | TSql110 | TSql120,
TSqlUnder140 = TSql80 | TSql90 | TSql100 | TSql110 | TSql120 | TSql130,
TSqlUnder150 = TSql80 | TSql90 | TSql100 | TSql110 | TSql120 | TSql130 | TSql140,
TSqlUnder160 = TSql80 | TSql90 | TSql100 | TSql110 | TSql120 | TSql130 | TSql140 | TSql150,
TSqlUnder170 = TSql80 | TSql90 | TSql100 | TSql110 | TSql120 | TSql130 | TSql140 | TSql150 | TSql160,
}
}
Loading
Loading