diff options
-rwxr-xr-x | mcs/class/System.Data/System.Data.Common/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/System.Data/System.Data.Common/DbDataPermission.cs | 9 |
2 files changed, 12 insertions, 2 deletions
diff --git a/mcs/class/System.Data/System.Data.Common/ChangeLog b/mcs/class/System.Data/System.Data.Common/ChangeLog index 1a63975d68e..83bbfbd78b6 100755 --- a/mcs/class/System.Data/System.Data.Common/ChangeLog +++ b/mcs/class/System.Data/System.Data.Common/ChangeLog @@ -1,3 +1,8 @@ +2004-01-09 Atsushi Enomoto <atsushi@ximian.com> + + * DbDataPermission.cs : .ctor(PermissionState state) should not call + obsolete .ctor(state, allowBlankPassword). csc reports an error. + 2003-12-30 Gonzalo Paniagua Javier <gonzalo@ximian.com> * DbDataAdapter.cs: handle MissingShemaAction.AddWithKey, call diff --git a/mcs/class/System.Data/System.Data.Common/DbDataPermission.cs b/mcs/class/System.Data/System.Data.Common/DbDataPermission.cs index 963503068b0..f563f65b2a6 100644 --- a/mcs/class/System.Data/System.Data.Common/DbDataPermission.cs +++ b/mcs/class/System.Data/System.Data.Common/DbDataPermission.cs @@ -42,14 +42,19 @@ namespace System.Data.Common { #endif protected DBDataPermission (PermissionState state) - : this (state, false) + : this (state, false, false) { } #if NET_1_2 [Obsolete ("use DBDataPermission (PermissionState.None)", true)] #endif - public DBDataPermission (PermissionState state, bool allowBlankPassword) + public DBDataPermission (PermissionState state, bool allowBlankPassword) + : this (state, allowBlankPassword, true) + { + } + + DBDataPermission (PermissionState state, bool allowBlankPassword, bool dummyArg) { this.state = state; this.allowBlankPassword = allowBlankPassword; |