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: porting commits for release 161.91.09 #77

Merged
merged 3 commits into from
Mar 15, 2024
Merged

Conversation

llali
Copy link
Member

@llali llali commented Mar 15, 2024

No description provided.

PratimDasgupta and others added 3 commits March 15, 2024 09:21
…g the new syntax to SQLDOM

New TSQL Intrinsic: Current_Date
Syntax: SELECT CURRENT_DATE;

This intrinsic takes no parameter.

SQL Design Spec:
https://microsoft.sharepoint.com/:w:/t/DataMigrationJumpstartGroup-DPNforSQLMigrationsandModernization2/Eb2RELUXgl9MilDryRxFhj0Bw2Zaej2MZDIBAL9eSrlL7w?e=VQHZyF

SQL PRs:
https://msdata.visualstudio.com/Database%20Systems/_git/DsMainDev/pullrequest/1039041
https://msdata.visualstudio.com/Database%20Systems/_git/DsMainDev/pullrequest/1274758

----
#### AI description (iteration 1)
#### PR Classification
This pull request introduces a new feature to the SQL Server's SQLDOM.

#### PR Summary
The pull request adds support for the `CurrentDate` intrinsic in SQL Server. This is achieved by updating the `ParameterlessCallType` enum and the corresponding parser and generator files to recognize and handle the `CurrentDate` keyword.
- Updated the `ParameterlessCallType` enum in `ParameterlessCallType.cs` to include `CurrentDate`.
- Modified the `Ast.xml` file to include `CurrentDate` in the `ParameterlessCallType` summary.
- Changes made in parser files (`TSql80.g`, `TSql100.g`, `TSql110.g`, `TSql120.g`, `TSql130.g`, `TSql140.g`, `TSql150.g`, `TSql160.g`, `TSql90.g`) to recognize `CurrentDate` keyword.
- Updated the `SqlScriptGeneratorVisitor.ParameterlessCall.cs` to generate the `CurrentDate` keyword.
- Adjusted the test scripts (`ExpressionTests.sql`) to include tests for `CurrentDate`.

Related work items: #2395870
This pull request introduces a new feature to the project.

This pull request merges the JSON feature branch into the main branch. The changes primarily involve the addition of JSON data type support and an update to the build variables.
- In `SqlScriptDom/Parser/TSql/SqlDataTypeOption.cs`, a new JSON data type option has been added.
- In `SqlScriptDom/ScriptDom/SqlServer/ScriptGenerator/SqlScriptGeneratorVisitor.SqlDataType.cs`, the JSON data type has been included in the IdentifierGenerator.
- In `/.pipelines/templates/buildVariables.yml` and `/.build/AssemblyInfo.props`, the build number has been updated from 8900 to 9100.

Related work items: #2946555
Adds release notes for 161.9109.0

----
#### AI description (iteration 1)
#### PR Classification
This pull request is primarily for adding new features and fixing bugs in the Microsoft.SqlServer.TransactSql.ScriptDom version 161.9109.0.

#### PR Summary
This pull request introduces new features and bug fixes to the Microsoft.SqlServer.TransactSql.ScriptDom. It also updates the release notes to reflect these changes.
- In /release-notes/161.91/161.9109.0.md, added support for the CURRENT_DATE keyword and native JSON type.
- Fixed issues with parsing OPENROWSET with numeric codepage as string and added quotes around invalid keywords in error messages.
- Introduced a new static method to create a parser.
@llali llali merged commit 47cfc1d into main Mar 15, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants