mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-13 17:23:02 -05:00
Only set Restrict Access if a non-null value is provided (#2140)
This commit is contained in:
@@ -479,9 +479,12 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectManagement
|
||||
// AutoCreateStatisticsIncremental can only be set when AutoCreateStatistics is enabled
|
||||
prototype.AutoCreateStatisticsIncremental = database.AutoCreateIncrementalStatistics;
|
||||
prototype.AutoCreateStatistics = database.AutoCreateStatistics;
|
||||
prototype.AutoShrink= database.AutoShrink;
|
||||
prototype.AutoShrink = database.AutoShrink;
|
||||
prototype.AutoUpdateStatistics = database.AutoUpdateStatistics;
|
||||
if (database.RestrictAccess != null)
|
||||
{
|
||||
prototype.RestrictAccess = database.RestrictAccess;
|
||||
}
|
||||
|
||||
if (prototype is DatabasePrototypeAzure dbAz)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user