From 51b50b18aa726c05e1468b3c59a2ddc4f6c31a66 Mon Sep 17 00:00:00 2001 From: Noah Potash Date: Fri, 31 Mar 2017 16:14:53 -0400 Subject: [PATCH] Adding [SecuritySafeCritical] attribute to MySqlField ctor to unbreak consumption in net461 --- Source/MySql.Data/Field.cs | 6 ++++-- Source/MySql.Data/project.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/MySql.Data/Field.cs b/Source/MySql.Data/Field.cs index 1856212c9..8b64ad4ea 100644 --- a/Source/MySql.Data/Field.cs +++ b/Source/MySql.Data/Field.cs @@ -28,6 +28,7 @@ using System; using System.Collections; using System.Collections.Generic; +using System.Security; namespace MySql.Data.MySqlClient { @@ -77,9 +78,10 @@ internal class MySqlField protected bool binaryOk; protected List typeConversions = new List(); - #endregion + #endregion - public MySqlField(Driver driver) + [SecuritySafeCritical] + public MySqlField(Driver driver) { this.driver = driver; connVersion = driver.Version; diff --git a/Source/MySql.Data/project.json b/Source/MySql.Data/project.json index 6d6a13871..271096709 100644 --- a/Source/MySql.Data/project.json +++ b/Source/MySql.Data/project.json @@ -1,5 +1,5 @@ { - "version": "6.9.815", + "version": "6.9.816", "description": "MySQL client library targeting netstandard 1.3", "authors": [ "Oracle", "SapientGuardian", "ebyte23" ], "buildOptions": {