Commit fbfd827
authored
Fix | Build DataTypes table in code, add
* Create structure of DataTypes static population
* Remove redundant data types from metadata
SqlClient cannot connect to SQL Server 2000 instances, so the minimum server version is 9.0.
* Remove data type entries with a maximum version below this.
* Remove the minimum version constraint where this constraint will always be true.
* Populate DataTypes table from MetaType information
* Add test to verify presence of data types
* Add json data type to DataTypes schema collection
* Use IsJsonSupported more widely
This enables the JSON tests to run against SQL Server 2025.
Also correct a comment in LoadDataTypesDataTables.
* Plumb minimum version logic to AddStringOrBinaryType
* Address MARS JSON test failure
This was manually constructing a connection string, which didn't work on one CI leg.json data type (#3858)1 parent 7a49600 commit fbfd827
8 files changed
Lines changed: 551 additions & 762 deletions
File tree
- src/Microsoft.Data.SqlClient
- src
- Microsoft/Data/SqlClient
- Resources
- tests/ManualTests
- DataCommon
- SQL
- DataBaseSchemaTest
- JsonTest
Lines changed: 438 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 4 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
713 | 713 | | |
714 | 714 | | |
715 | 715 | | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
716 | 719 | | |
717 | 720 | | |
718 | 721 | | |
| |||
762 | 765 | | |
763 | 766 | | |
764 | 767 | | |
765 | | - | |
766 | | - | |
767 | | - | |
768 | 768 | | |
769 | 769 | | |
770 | 770 | | |
| |||
898 | 898 | | |
899 | 899 | | |
900 | 900 | | |
901 | | - | |
902 | | - | |
903 | | - | |
904 | | - | |
905 | | - | |
906 | | - | |
907 | | - | |
908 | | - | |
909 | | - | |
910 | | - | |
911 | | - | |
912 | | - | |
913 | | - | |
914 | | - | |
915 | | - | |
916 | | - | |
917 | | - | |
918 | | - | |
919 | | - | |
920 | | - | |
921 | | - | |
922 | | - | |
923 | | - | |
924 | | - | |
925 | | - | |
926 | | - | |
927 | | - | |
928 | | - | |
929 | | - | |
930 | | - | |
931 | | - | |
932 | | - | |
933 | 901 | | |
934 | 902 | | |
935 | 903 | | |
| |||
0 commit comments