mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-17 02:51:45 -05:00
Only set Restrict Access if a non-null value is provided (#2140)
This commit is contained in:
@@ -481,7 +481,10 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectManagement
|
||||
prototype.AutoCreateStatistics = database.AutoCreateStatistics;
|
||||
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