File tree 1 file changed +6
-2
lines changed
src/Microsoft.Data.SqlClient/src/Microsoft/Data/Common
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -750,16 +750,20 @@ internal static Version GetAssemblyVersion()
750
750
751
751
private const string ONDEMAND_PREFIX = "-ondemand" ;
752
752
private const string AZURE_SYNAPSE = "-ondemand.sql.azuresynapse." ;
753
+ private const string FABRIC_DATAWAREHOUSE = ".datawarehouse.fabric.microsoft.com" ;
753
754
754
755
internal static bool IsAzureSynapseOnDemandEndpoint ( string dataSource )
755
756
{
756
- return IsEndpoint ( dataSource , ONDEMAND_PREFIX ) || dataSource . Contains ( AZURE_SYNAPSE ) ;
757
+ return IsEndpoint ( dataSource , ONDEMAND_PREFIX )
758
+ || dataSource . Contains ( AZURE_SYNAPSE )
759
+ || dataSource . Contains ( FABRIC_DATAWAREHOUSE ) ;
757
760
}
758
761
759
762
internal static readonly string [ ] s_azureSqlServerEndpoints = { StringsHelper . GetString ( Strings . AZURESQL_GenericEndpoint ) ,
760
763
StringsHelper . GetString ( Strings . AZURESQL_GermanEndpoint ) ,
761
764
StringsHelper . GetString ( Strings . AZURESQL_UsGovEndpoint ) ,
762
- StringsHelper . GetString ( Strings . AZURESQL_ChinaEndpoint ) } ;
765
+ StringsHelper . GetString ( Strings . AZURESQL_ChinaEndpoint ) ,
766
+ ".database.fabric.microsoft.com" } ;
763
767
764
768
internal static bool IsAzureSqlServerEndpoint ( string dataSource )
765
769
{
You can’t perform that action at this time.
0 commit comments