Commit aa13f7e
authored
Sync Repos: porting commits for release 161.9123.0 (#86)
* Merged PR 1367589: handle json data type while parsing
Json data type has been added to SqlDataTypeOption. However, Json data type is not mapped to this enum while parsing t-sql scripts. For example, for script Create Table t1(c1 json), type of column c1 will be mapped as a UserDefinedType.
This PR fixed this issue by adding a ParseDataType160 method in TSql160ParserBaseInternal.cs and map token "json" to SqlDataTypeOption.Json.
A test case is added in CreateTableTests160.sql to cover this.
----
#### AI description (iteration 1)
#### PR Classification
This pull request introduces a new feature to handle JSON data type while parsing in the SQL script.
#### PR Summary
The changes in this pull request allow the SQL parser to recognize and handle JSON data types. This enhancement improves the versatility of the parser and expands its compatibility with different data types.
- In `TSql160ParserBaseInternal.cs`, a new method `ParseDataType160` was added to handle the parsing of JSON data type.
- In `TSql160.g`, the method call was updated from `ParseDataType100` to `ParseDataType160` to utilize the new JSON parsing functionality.
- Test scripts in `CreateTableTests160.sql` and `TestScripts/CreateTableTests160.sql` were updated to include tests for tables with JSON columns, ensuring the new feature works as expected.
Related work items: #3264300
* Merged PR 1381485: Adding release notes for release 9123
Adding release notes for release 9123
----
#### AI description (iteration 1)
#### PR Classification
This pull request is primarily for documentation, providing release notes for the new release 9123 of Microsoft.SqlServer.TransactSql.ScriptDom.
#### PR Summary
The pull request adds a new markdown file for the release notes of version 161.9123.0 of Microsoft.SqlServer.TransactSql.ScriptDom. The notes detail the target platform support, dependencies, fixes, and changes in this release.
- Added a new file `/release-notes/161.91/161.9123.0.md` detailing the release notes for version 161.9123.0, including the support for .NET Framework 4.6.2, .NET 6, and .NET Standard 2.0+, as well as a fix for parsing JSON column type in a table.
---------1 parent e92c8c7 commit aa13f7e
File tree
5 files changed
+42
-1
lines changed- SqlScriptDom/Parser/TSql
- Test/SqlDom
- Baselines160
- TestScripts
- release-notes/161.91
5 files changed
+42
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30081 | 30081 | | |
30082 | 30082 | | |
30083 | 30083 | | |
30084 | | - | |
| 30084 | + | |
30085 | 30085 | | |
30086 | 30086 | | |
30087 | 30087 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
59 | 70 | | |
60 | 71 | | |
61 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
1 | 4 | | |
2 | 5 | | |
3 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments